The MethodBindingFlags enumeration contains flags, used for search of the method in the corresponding type.
It is used by following property:
Value | Brief description |
0 | Default_. Specifies, that the binding flag is absent. |
1 | IgnoreCase. Specifies, that the case of method name should not be considered at binding. |
2 | DeclaredOnly. Specifies, that only the methods declared at hierarchy level of used type should be considered. Inherited methods are not considered. |
4 | Instance. Specifies, that type instance methods should be included into search. |
8 | Static. Specifies, that static type methods should be included into search. |
16 | Public_. Specifies, that methods declared with modifier Public should be included into search. |
32 | NonPublic. Specifies, that the methods declared with modifier Public should not be included into search. |
64 | FlattenHierarchy. Specifies, that opened (Public) and protected (Protected) static members of higher levels of hierarchy should be returned. Closed (Private) static members in inherited classes are not to be returned. Static members are fields, methods, events and properties. Nested types are not to be returned. |
256 | InvokeMethod. Specifies, that the method should be called. Method cannot be a constructor. |
512 | CreateInstance. Specifies, that a called method should create an instance of the assigned type. It calls the constructor according to specified arguments. Provided name of a member is ignored. If the type of search is not specified, than flags (Instance Or Public) are used. |
1024 | GetField. Specifies, that the value of specified field should be returned. |
2048 | SetField. Specifies, that the value of specified field should be set. |
4096 | GetProperty. Specifies, that the value of specified property should be returned. |
8192 | SetProperty. Specifies, that the value of specified property should be set. Setting this binding flag to COM properties is equivalent to setting PutDispProperty and PutRefDispProperty properties. |
16384 | PutDispProperty. Specifies, that member PROPPUT of COM object should be called. Member PROPPUT determines configuration function of property in which the value is used. Argument PutDispProperty should be used in case if the PROPPUT and PROPPUTREF are simultaneously assigned for the property. Called methods should be distinguished in such case. |
32768 | PutRefDispProperty. Specifies, that member PROPPUTREF of COM object should be called. The PROPPUTREF member determines the property configuration function, in which the link is used instead of the value. The PutRefDispProperty argument should be used in case if PROPPUT and PROPPUTREF are simultaneously assigned for the property. Called methods should be distinguished in such case. |
65536 | ExactBinding. Specifies, that types of the presented arguments should coincide precisely with types of corresponding formal parameters. If the calling operator passes nonzero object Binding, the reflection creates the exception, because the calling object provides implementations BindToXXX in which the necessary method is chosen. By default, binder does not process this flag, however configured binders could implement the semantics of this flag. |
131072 | SuppressChangeType. Reserved for the future. |
262144 | OptionalParamBinding. Returns a set of members, number of parameters of which corresponds to the number of the passed arguments. The binding flag is used for methods with parameters, that have values of methods, and for functions with variable number of arguments (PARAMARRAY). This flag could be used only with the IForeNETRuntimeType.InvokeMethod method. Parameters with default values are used only in those calls where final arguments are omitted. They should be the last arguments. |
16777216 | IgnoreReturn. It is used at COM interoperation for definition of the fact, that returned value of the member can be ignored. |
See also: