This enumeration is used by reflection classes such as System.Reflection.Binder, System.Reflection.Module, and System.Reflection.ConstructorInfo . System.Reflection.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 System.Reflection.BindingFlags values, use the bitwise 'OR' operator.
| Member Name | Description |
|---|---|
| CreateInstance | Specifies that an instance of a type will be created. |
| DeclaredOnly | 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. |
| Default | Documentation for this section has not yet been entered. |
| ExactBinding |
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.
|
| FlattenHierarchy | Documentation for this section has not yet been entered. |
| GetField | Specifies that the value of a field will be returned. |
| GetProperty | Specifies that the value of a property will be returned by invoking the get accessor of a System.Reflection.PropertyInfo instance that reflects that property. |
| IgnoreCase | Specifies that a member name will be handled in a case-insensitive manner when binding. |
| IgnoreReturn | Documentation for this section has not yet been entered. |
| Instance | Specifies that instance members will be included in the binding search. |
| InvokeMethod | Specifies that a method will be invoked. |
| NonPublic | 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. |
| OptionalParamBinding | 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. |
| Public | Specifies that public members will be included in the binding search. |
| PutDispProperty | Documentation for this section has not yet been entered. |
| PutRefDispProperty | Documentation for this section has not yet been entered. |
| SetField | Specifies that the value of a field will be set. |
| SetProperty | Specifies that the value of a property will be set by invoking the set accessor of a System.Reflection.PropertyInfo instance that reflects that property. |
| Static | Specifies that static members will be included in the binding search. |
| SuppressChangeType |
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.
|