mscorlib(4.0.0.0) API with additions
|
Interoperates with the IDispatch interface. More...
Public Member Functions | |
MethodInfo | GetMethod (string name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers) |
Retrieves a T:System.Reflection.MethodInfo object corresponding to a specified method, using a T:System.Type array to choose from among overloaded methods. More... | |
MethodInfo | GetMethod (string name, BindingFlags bindingAttr) |
Retrieves a T:System.Reflection.MethodInfo object that corresponds to a specified method under specified search constraints. More... | |
MethodInfo [] | GetMethods (BindingFlags bindingAttr) |
Retrieves an array of T:System.Reflection.MethodInfo objects with all public methods or all methods of the current class. More... | |
FieldInfo | GetField (string name, BindingFlags bindingAttr) |
Returns the T:System.Reflection.FieldInfo object that corresponds to the specified field and binding flag. More... | |
FieldInfo [] | GetFields (BindingFlags bindingAttr) |
Returns an array of T:System.Reflection.FieldInfo objects that correspond to all fields of the current class. More... | |
PropertyInfo | GetProperty (string name, BindingFlags bindingAttr) |
Retrieves a T:System.Reflection.PropertyInfo object corresponding to a specified property under specified search constraints. More... | |
PropertyInfo | GetProperty (string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) |
Retrieves a T:System.Reflection.PropertyInfo object that corresponds to a specified property with specified search constraints. More... | |
PropertyInfo [] | GetProperties (BindingFlags bindingAttr) |
Retrieves an array of T:System.Reflection.PropertyInfo objects corresponding to all public properties or to all properties of the current class. More... | |
MemberInfo [] | GetMember (string name, BindingFlags bindingAttr) |
Retrieves an array of T:System.Reflection.MemberInfo objects corresponding to all public members or to all members that match a specified name. More... | |
MemberInfo [] | GetMembers (BindingFlags bindingAttr) |
Retrieves an array of T:System.Reflection.MemberInfo objects that correspond either to all public members or to all members of the current class. More... | |
object | InvokeMember (string name, BindingFlags invokeAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, CultureInfo culture, string[] namedParameters) |
Invokes a specified member. More... | |
Properties | |
Type | UnderlyingSystemType [get] |
Gets the underlying type that represents the T:System.Reflection.IReflect object. More... | |
Interoperates with the IDispatch interface.
Definition at line 9 of file IReflect.cs.
FieldInfo System.Reflection.IReflect.GetField | ( | string | name, |
BindingFlags | bindingAttr | ||
) |
Returns the T:System.Reflection.FieldInfo object that corresponds to the specified field and binding flag.
name | The name of the field to find. |
bindingAttr | The binding attributes used to control the search. |
T:System.Reflection.AmbiguousMatchException | The object implements multiple fields with the same name. |
Implemented in System.Type, System.Reflection.Emit.TypeBuilder, System.Reflection.Emit.GenericTypeParameterBuilder, System.Reflection.Emit.EnumBuilder, and System.Reflection.TypeDelegator.
FieldInfo [] System.Reflection.IReflect.GetFields | ( | BindingFlags | bindingAttr | ) |
Returns an array of T:System.Reflection.FieldInfo objects that correspond to all fields of the current class.
bindingAttr | The binding attributes used to control the search. |
Implemented in System.Type, System.Reflection.Emit.TypeBuilder, System.Reflection.Emit.GenericTypeParameterBuilder, System.Reflection.Emit.EnumBuilder, and System.Reflection.TypeDelegator.
MemberInfo [] System.Reflection.IReflect.GetMember | ( | string | name, |
BindingFlags | bindingAttr | ||
) |
Retrieves an array of T:System.Reflection.MemberInfo objects corresponding to all public members or to all members that match a specified name.
name | The name of the member to find. |
bindingAttr | The binding attributes used to control the search. |
Implemented in System.Type.
MemberInfo [] System.Reflection.IReflect.GetMembers | ( | BindingFlags | bindingAttr | ) |
Retrieves an array of T:System.Reflection.MemberInfo objects that correspond either to all public members or to all members of the current class.
bindingAttr | The binding attributes used to control the search. |
Implemented in System.Type, System.Reflection.Emit.TypeBuilder, System.Reflection.Emit.GenericTypeParameterBuilder, System.Reflection.Emit.EnumBuilder, and System.Reflection.TypeDelegator.
MethodInfo System.Reflection.IReflect.GetMethod | ( | string | name, |
BindingFlags | bindingAttr, | ||
Binder | binder, | ||
Type [] | types, | ||
ParameterModifier [] | modifiers | ||
) |
Retrieves a T:System.Reflection.MethodInfo object corresponding to a specified method, using a T:System.Type array to choose from among overloaded methods.
name | The name of the member to find. |
bindingAttr | The binding attributes used to control the search. |
binder | An object that implements T:System.Reflection.Binder, containing properties related to this method. |
types | An array used to choose among overloaded methods. |
modifiers | An array of parameter modifiers used to make binding work with parameter signatures in which the types have been modified. |
T:System.Reflection.AmbiguousMatchException | The object implements multiple methods with the same name. |
Implemented in System.Type.
MethodInfo System.Reflection.IReflect.GetMethod | ( | string | name, |
BindingFlags | bindingAttr | ||
) |
Retrieves a T:System.Reflection.MethodInfo object that corresponds to a specified method under specified search constraints.
name | The name of the member to find. |
bindingAttr | The binding attributes used to control the search. |
T:System.Reflection.AmbiguousMatchException | The object implements multiple methods with the same name. |
Implemented in System.Type.
MethodInfo [] System.Reflection.IReflect.GetMethods | ( | BindingFlags | bindingAttr | ) |
Retrieves an array of T:System.Reflection.MethodInfo objects with all public methods or all methods of the current class.
bindingAttr | The binding attributes used to control the search. |
Implemented in System.Type, System.Reflection.Emit.TypeBuilder, System.Reflection.Emit.GenericTypeParameterBuilder, System.Reflection.Emit.EnumBuilder, and System.Reflection.TypeDelegator.
PropertyInfo [] System.Reflection.IReflect.GetProperties | ( | BindingFlags | bindingAttr | ) |
Retrieves an array of T:System.Reflection.PropertyInfo objects corresponding to all public properties or to all properties of the current class.
bindingAttr | The binding attribute used to control the search. |
Implemented in System.Type, System.Reflection.Emit.TypeBuilder, System.Reflection.Emit.GenericTypeParameterBuilder, System.Reflection.Emit.EnumBuilder, and System.Reflection.TypeDelegator.
PropertyInfo System.Reflection.IReflect.GetProperty | ( | string | name, |
BindingFlags | bindingAttr | ||
) |
Retrieves a T:System.Reflection.PropertyInfo object corresponding to a specified property under specified search constraints.
name | The name of the property to find. |
bindingAttr | The binding attributes used to control the search. |
null
if the property was not located.T:System.Reflection.AmbiguousMatchException | The object implements multiple fields with the same name. |
Implemented in System.Type.
PropertyInfo System.Reflection.IReflect.GetProperty | ( | string | name, |
BindingFlags | bindingAttr, | ||
Binder | binder, | ||
Type | returnType, | ||
Type [] | types, | ||
ParameterModifier [] | modifiers | ||
) |
Retrieves a T:System.Reflection.PropertyInfo object that corresponds to a specified property with specified search constraints.
name | The name of the member to find. |
bindingAttr | The binding attribute used to control the search. |
binder | An object that implements T:System.Reflection.Binder, containing properties related to this method. |
returnType | The type of the property. |
types | An array used to choose among overloaded methods with the same name. |
modifiers | An array used to choose the parameter modifiers. |
null
if the property was not located.Implemented in System.Type.
object System.Reflection.IReflect.InvokeMember | ( | string | name, |
BindingFlags | invokeAttr, | ||
Binder | binder, | ||
object | target, | ||
object [] | args, | ||
ParameterModifier [] | modifiers, | ||
CultureInfo | culture, | ||
string [] | namedParameters | ||
) |
Invokes a specified member.
name | The name of the member to find. |
invokeAttr | One of the T:System.Reflection.BindingFlags invocation attributes. The invokeAttr parameter may be a constructor, method, property, or field. A suitable invocation attribute must be specified. Invoke the default member of a class by passing the empty string ("") as the name of the member. |
binder | One of the T:System.Reflection.BindingFlags bit flags. Implements T:System.Reflection.Binder, containing properties related to this method. |
target | The object on which to invoke the specified member. This parameter is ignored for static members. |
args | An array of objects that contains the number, order, and type of the parameters of the member to be invoked. This is an empty array if there are no parameters. |
modifiers | An array of T:System.Reflection.ParameterModifier objects. This array has the same length as the args parameter, representing the invoked member's argument attributes in the metadata. A parameter can have the following attributes: pdIn , pdOut , pdRetval , pdOptional , and pdHasDefault . These represent [In], [Out], [retval], [optional], and a default parameter, respectively. These attributes are used by various interoperability services. |
culture | An instance of T:System.Globalization.CultureInfo used to govern the coercion of types. For example, culture converts a String that represents 1000 to a Double value, since 1000 is represented differently by different cultures. If this parameter is null , the T:System.Globalization.CultureInfo for the current thread is used. |
namedParameters | A String array of parameters. |
T:System.ArgumentException | invokeAttr is F:System.Reflection.BindingFlags.CreateInstance and another bit flag is also set. |
T:System.ArgumentException | invokeAttr is not F:System.Reflection.BindingFlags.CreateInstance and name is null . |
T:System.ArgumentException | invokeAttr is not an invocation attribute from T:System.Reflection.BindingFlags. |
T:System.ArgumentException | invokeAttr specifies both get and set for a property or field. |
T:System.ArgumentException | invokeAttr specifies both a field set and an Invoke method. args are provided for a field get . |
T:System.ArgumentException | More than one argument is specified for a field set . |
T:System.MissingFieldException | The field or property cannot be found. |
T:System.MissingMethodException | The method cannot be found. |
T:System.Security.SecurityException | A private member is invoked without the necessary T:System.Security.Permissions.ReflectionPermission. |
Implemented in System.Type, System.Reflection.Emit.TypeBuilder, System.Reflection.Emit.GenericTypeParameterBuilder, System.Reflection.Emit.EnumBuilder, and System.Reflection.TypeDelegator.
|
get |
Gets the underlying type that represents the T:System.Reflection.IReflect object.
Definition at line 14 of file IReflect.cs.