public enum BindingFlags
Object
ValueType
Enum
BindingFlags
mscorlib
Reflection
Specifies flags that control the binding and the invocation processes conducted by reflection.
This enumeration is used by reflection classes such as Binder, Module, and ConstructorInfo . BindingFlags values are used to control binding in methods in classes that find and invoke, create, get, and set members and types.To specify multiple BindingFlags values, use the bitwise 'OR' operator.
FlagsAttribute
System.Reflection Namespace
BindingFlags Fields
BindingFlags.CreateInstance Field
BindingFlags.DeclaredOnly Field
BindingFlags.ExactBinding Field
BindingFlags.GetField Field
BindingFlags.GetProperty Field
BindingFlags.IgnoreCase Field
BindingFlags.Instance Field
BindingFlags.InvokeMethod Field
BindingFlags.NonPublic Field
BindingFlags.OptionalParamBinding Field
BindingFlags.Public Field
BindingFlags.SetField Field
BindingFlags.SetProperty Field
BindingFlags.Static Field
BindingFlags.SuppressChangeType Field
BindingFlags.value__ Field
CreateInstance = 0x200;
Specifies that an instance of a type will be created.
System.Reflection.BindingFlags Enum, System.Reflection Namespace
DeclaredOnly = 0x2;
Specifies that only the members declared on a type will be searched when binding. When this field is specified, inherited members will not be searched.
System.Reflection.BindingFlags Enum, System.Reflection Namespace
ExactBinding = 0x10000;
Specifies that, when binding to a method, the types of the arguments passed to the binder are required to be the same as the types of the corresponding parameters in the method signature.[Note: Custom binders are allowed to ignore this flag. This flag is provided as a hint for custom binders.]
System.Reflection.BindingFlags Enum, System.Reflection Namespace
GetField = 0x400;
Specifies that the value of a field will be returned.
System.Reflection.BindingFlags Enum, System.Reflection Namespace
GetProperty = 0x1000;
Specifies that the value of a property will be returned by invoking theget
accessor of a PropertyInfo instance that reflects that property.
System.Reflection.BindingFlags Enum, System.Reflection Namespace
IgnoreCase = 0x1;
Specifies that a member name will be handled in a case-insensitive manner when binding.
System.Reflection.BindingFlags Enum, System.Reflection Namespace
Instance = 0x4;
Specifies that instance members will be included in the binding search.
System.Reflection.BindingFlags Enum, System.Reflection Namespace
InvokeMethod = 0x100;
Specifies that a method will be invoked.
System.Reflection.BindingFlags Enum, System.Reflection Namespace
NonPublic = 0x20;
Specifies that non-public (i.e. family and private) members will be included in the binding search if the search has the permission required to bind non-public members.
System.Reflection.BindingFlags Enum, System.Reflection Namespace
OptionalParamBinding = 0x40000;
Specifies that the set of members whose parameter count matches the number of arguments supplied to the binding method are to be returned by the binding method. [Note: This flag is used in conjunction with methods that have parameters with default values and with methods that have variable arguments. ]
System.Reflection.BindingFlags Enum, System.Reflection Namespace
Public = 0x10;
Specifies that public members will be included in the binding search.
System.Reflection.BindingFlags Enum, System.Reflection Namespace
SetField = 0x800;
Specifies that the value of a field will be set.
System.Reflection.BindingFlags Enum, System.Reflection Namespace
SetProperty = 0x2000;
Specifies that the value of a property will be set by invoking theset
accessor of a PropertyInfo instance that reflects that property.
System.Reflection.BindingFlags Enum, System.Reflection Namespace
Static = 0x8;
Specifies that static members will be included in the binding search.
System.Reflection.BindingFlags Enum, System.Reflection Namespace
SuppressChangeType = 0x20000;
Specifies that the system will not change the types of parameters when binding with the default binder.[Note: Custom binders are allowed to ignore this flag. This flag is provided as a hint for custom binders.]
System.Reflection.BindingFlags Enum, System.Reflection Namespace
value__;
System.Reflection.BindingFlags Enum, System.Reflection Namespace