Mono Class Library: System.Reflection Namespace

System.Reflection.BindingFlags Enumeration

Specifies flags that control the binding and the invocation processes conducted by reflection. [Edit]
[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
public enum BindingFlags

Remarks

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.

[Edit]

Members

Member NameDescription
CreateInstance Specifies that an instance of a type will be created. [Edit]
DeclaredOnlySpecifies that only the members declared on a type will be searched when binding. When this field is specified, inherited members will not be searched. [Edit]
DefaultDocumentation for this section has not yet been entered. [Edit]
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.

[Edit]
FlattenHierarchyDocumentation for this section has not yet been entered. [Edit]
GetField Specifies that the value of a field will be returned. [Edit]
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. [Edit]
IgnoreCaseSpecifies that a member name will be handled in a case-insensitive manner when binding. [Edit]
IgnoreReturnDocumentation for this section has not yet been entered. [Edit]
Instance Specifies that instance members will be included in the binding search. [Edit]
InvokeMethod Specifies that a method will be invoked. [Edit]
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. [Edit]
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.
[Edit]
Public Specifies that public members will be included in the binding search. [Edit]
PutDispPropertyDocumentation for this section has not yet been entered. [Edit]
PutRefDispPropertyDocumentation for this section has not yet been entered. [Edit]
SetField Specifies that the value of a field will be set. [Edit]
SetPropertySpecifies that the value of a property will be set by invoking the set accessor of a System.Reflection.PropertyInfo instance that reflects that property. [Edit]
Static Specifies that static members will be included in the binding search. [Edit]
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.
[Edit]

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0