struct BindingFlags

in global :: System . Reflection

Specifies flags that control binding and the way in which the search for members and types is conducted by reflection.


public static BindingFlags CreateInstance

Specifies that reflection should create an instance of the specified type. Calls the constructor that matches the given arguments. The supplied member name is ignored. If the type of lookup is not specified, (Instance | Public) will apply. It is not possible to call a type initializer. This flag is passed to an method to invoke a constructor.

public static BindingFlags DeclaredOnly

Specifies that only members declared at the level of the supplied type's hierarchy should be considered. Inherited members are not considered.

public static BindingFlags Default

Specifies that no binding flags are defined.

public static BindingFlags DoNotWrapExceptions

No summary.

public static BindingFlags ExactBinding

Specifies that types of the supplied arguments must exactly match the types of the corresponding formal parameters. Reflection throws an exception if the caller supplies a non-null object, since that implies that the caller is supplying implementations that will pick the appropriate method. The default binder ignores this flag, while custom binders can implement the semantics of this flag.

public static BindingFlags FlattenHierarchy

Specifies that public and protected static members up the hierarchy should be returned. Private static members in inherited classes are not returned. Static members include fields, methods, events, and properties. Nested types are not returned.

public static BindingFlags GetField

Specifies that the value of the specified field should be returned. This flag is passed to an method to get a field value.

public static BindingFlags GetProperty

Specifies that the value of the specified property should be returned. This flag is passed to an method to invoke a property getter.

public static BindingFlags IgnoreCase

Specifies that the case of the member name should not be considered when binding.

public static BindingFlags IgnoreReturn

Used in COM interop to specify that the return value of the member can be ignored.

public static BindingFlags Instance

Specifies that instance members are to be included in the search.

public static BindingFlags InvokeMethod

Specifies that a method is to be invoked. This must not be a constructor or a type initializer. This flag is passed to an method to invoke a method.

public static BindingFlags NonPublic

Specifies that non-public members are to be included in the search.

public static BindingFlags OptionalParamBinding

Returns the set of members whose parameter count matches the number of supplied arguments. This binding flag is used for methods with parameters that have default values and methods with variable arguments (varargs). This flag should only be used with .Parameters with default values are used only in calls where trailing arguments are omitted. They must be the last arguments.

public static BindingFlags Public

Specifies that public members are to be included in the search.

public static BindingFlags PutDispProperty

Specifies that the member on a COM object should be invoked. specifies a property-setting function that uses a value. Use if a property has both and and you need to distinguish which one is called.

public static BindingFlags PutRefDispProperty

Specifies that the member on a COM object should be invoked. specifies a property-setting function that uses a reference instead of a value. Use if a property has both and and you need to distinguish which one is called.

public static BindingFlags SetField

Specifies that the value of the specified field should be set. This flag is passed to an method to set a field value.

public static BindingFlags SetProperty

Specifies that the value of the specified property should be set. For COM properties, specifying this binding flag is equivalent to specifying and . This flag is passed to an method to invoke a property setter.

public static BindingFlags Static

Specifies that static members are to be included in the search.

public static BindingFlags SuppressChangeType

Not implemented.

public Type GetType( )

😔 No documentation found.

public TypeCode GetTypeCode( )

😔 No documentation found.

public string ToString( string format, IFormatProvider provider )

😔 No documentation found.

public string ToString( IFormatProvider provider )

😔 No documentation found.

public string ToString( string format )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public int CompareTo( object target )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public int value__

😔 No documentation found.

public bool HasFlag( Enum flag )

😔 No documentation found.