MethodBuilder Methods

 

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodAddDeclarativeSecurity(SecurityAction, PermissionSet)

Adds declarative security to this method.

System_CAPS_pubmethodCreateDelegate(Type)

Creates a delegate of the specified type from this method.(Inherited from MethodInfo.)

System_CAPS_pubmethodCreateDelegate(Type, Object)

Creates a delegate of the specified type with the specified target from this method.(Inherited from MethodInfo.)

System_CAPS_pubmethodCreateMethodBody(Byte[], Int32)

Creates the body of the method using a supplied byte array of Microsoft intermediate language (MSIL) instructions.

System_CAPS_pubmethodDefineGenericParameters(String[])

Sets the number of generic type parameters for the current method, specifies their names, and returns an array of GenericTypeParameterBuilder objects that can be used to define their constraints.

System_CAPS_pubmethodDefineParameter(Int32, ParameterAttributes, String)

Sets the parameter attributes and the name of a parameter of this method, or of the return value of this method. Returns a ParameterBuilder that can be used to apply custom attributes.

System_CAPS_pubmethodEquals(Object)

Determines whether the given object is equal to this instance.(Overrides MethodInfo.Equals(Object).)

System_CAPS_pubmethodGetBaseDefinition()

Return the base implementation for a method.(Overrides MethodInfo.GetBaseDefinition().)

System_CAPS_pubmethodGetCustomAttributes(Boolean)

Returns all the custom attributes defined for this method.(Overrides MemberInfo.GetCustomAttributes(Boolean).)

System_CAPS_pubmethodGetCustomAttributes(Type, Boolean)

Returns the custom attributes identified by the given type.(Overrides MemberInfo.GetCustomAttributes(Type, Boolean).)

System_CAPS_pubmethodGetCustomAttributesData()

Returns a list of CustomAttributeData objects representing data about the attributes that have been applied to the target member.(Inherited from MemberInfo.)

System_CAPS_pubmethodGetGenericArguments()

Returns an array of GenericTypeParameterBuilder objects that represent the type parameters of the method, if it is generic.(Overrides MethodInfo.GetGenericArguments().)

System_CAPS_pubmethodGetGenericMethodDefinition()

Returns this method.(Overrides MethodInfo.GetGenericMethodDefinition().)

System_CAPS_pubmethodGetHashCode()

Gets the hash code for this method.(Overrides MethodInfo.GetHashCode().)

System_CAPS_pubmethodGetILGenerator()

Returns an ILGenerator for this method with a default Microsoft intermediate language (MSIL) stream size of 64 bytes.

System_CAPS_pubmethodGetILGenerator(Int32)

Returns an ILGenerator for this method with the specified Microsoft intermediate language (MSIL) stream size.

System_CAPS_pubmethodGetMethodBody()

When overridden in a derived class, gets a MethodBody object that provides access to the MSIL stream, local variables, and exceptions for the current method.(Inherited from MethodBase.)

System_CAPS_pubmethodGetMethodImplementationFlags()

Returns the implementation flags for the method.(Overrides MethodBase.GetMethodImplementationFlags().)

System_CAPS_pubmethodGetModule()

Returns a reference to the module that contains this method.

System_CAPS_pubmethodGetParameters()

Returns the parameters of this method.(Overrides MethodBase.GetParameters().)

System_CAPS_pubmethodGetToken()

Returns the MethodToken that represents the token for this method.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInvoke(Object, BindingFlags, Binder, Object[], CultureInfo)

Dynamically invokes the method reflected by this instance on the given object, passing along the specified parameters, and under the constraints of the given binder.(Overrides MethodBase.Invoke(Object, BindingFlags, Binder, Object[], CultureInfo).)

System_CAPS_pubmethodInvoke(Object, Object[])

Invokes the method or constructor represented by the current instance, using the specified parameters.(Inherited from MethodBase.)

System_CAPS_pubmethodIsDefined(Type, Boolean)

Checks if the specified custom attribute type is defined.(Overrides MemberInfo.IsDefined(Type, Boolean).)

System_CAPS_pubmethodMakeGenericMethod(Type[])

Returns a generic method constructed from the current generic method definition using the specified generic type arguments.(Overrides MethodInfo.MakeGenericMethod(Type[]).)

System_CAPS_pubmethodSetCustomAttribute(ConstructorInfo, Byte[])

Sets a custom attribute using a specified custom attribute blob.

System_CAPS_pubmethodSetCustomAttribute(CustomAttributeBuilder)

Sets a custom attribute using a custom attribute builder.

System_CAPS_pubmethodSetImplementationFlags(MethodImplAttributes)

Sets the implementation flags for this method.

System_CAPS_pubmethodSetMarshal(UnmanagedMarshal)

Obsolete.Sets marshaling information for the return type of this method.

System_CAPS_pubmethodSetMethodBody(Byte[], Int32, Byte[], IEnumerable<ExceptionHandler>, IEnumerable<Int32>)

Creates the body of the method by using a specified byte array of Microsoft intermediate language (MSIL) instructions.

System_CAPS_pubmethodSetParameters(Type[])

Sets the number and types of parameters for a method.

System_CAPS_pubmethodSetReturnType(Type)

Sets the return type of the method.

System_CAPS_pubmethodSetSignature(Type, Type[], Type[], Type[], Type[][], Type[][])

Sets the method signature, including the return type, the parameter types, and the required and optional custom modifiers of the return type and parameter types.

System_CAPS_pubmethodSetSymCustomAttribute(String, Byte[])

Set a symbolic custom attribute using a blob.

System_CAPS_pubmethodToString()

Returns this MethodBuilder instance as a string.(Overrides Object.ToString().)

NameDescription
System_CAPS_pubmethodGetCustomAttribute(Type)

Overloaded. Retrieves a custom attribute of a specified type that is applied to a specified member.(Defined by CustomAttributeExtensions.)

System_CAPS_pubmethodGetCustomAttribute(Type, Boolean)

Overloaded. Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member.(Defined by CustomAttributeExtensions.)

System_CAPS_pubmethodGetCustomAttribute<T>()

Overloaded. Retrieves a custom attribute of a specified type that is applied to a specified member.(Defined by CustomAttributeExtensions.)

System_CAPS_pubmethodGetCustomAttribute<T>(Boolean)

Overloaded. Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member.(Defined by CustomAttributeExtensions.)

System_CAPS_pubmethodGetCustomAttributes()

Overloaded. Retrieves a collection of custom attributes that are applied to a specified member.(Defined by CustomAttributeExtensions.)

System_CAPS_pubmethodGetCustomAttributes(Type)

Overloaded. Retrieves a collection of custom attributes of a specified type that are applied to a specified member.(Defined by CustomAttributeExtensions.)

System_CAPS_pubmethodGetCustomAttributes<T>(Boolean)

Overloaded. Retrieves a collection of custom attributes of a specified type that are applied to a specified member, and optionally inspects the ancestors of that member.(Defined by CustomAttributeExtensions.)

System_CAPS_pubmethodGetRuntimeBaseDefinition()

Retrieves an object that represents the specified method on the direct or indirect base class where the method was first declared.(Defined by RuntimeReflectionExtensions.)

System_CAPS_pubmethodIsDefined(Type)

Overloaded. Indicates whether custom attributes of a specified type are applied to a specified member.(Defined by CustomAttributeExtensions.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethod_MemberInfo.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

Maps a set of names to a corresponding set of dispatch identifiers.(Inherited from MemberInfo.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod_MemberInfo.GetType()

Gets a Type object representing the MemberInfo class.(Inherited from MemberInfo.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod_MemberInfo.GetTypeInfo(UInt32, UInt32, IntPtr)

Retrieves the type information for an object, which can then be used to get the type information for an interface.(Inherited from MemberInfo.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod_MemberInfo.GetTypeInfoCount(UInt32)

Retrieves the number of type information interfaces that an object provides (either 0 or 1).(Inherited from MemberInfo.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod_MemberInfo.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

Provides access to properties and methods exposed by an object.(Inherited from MemberInfo.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod_MethodBase.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

Maps a set of names to a corresponding set of dispatch identifiers.(Inherited from MethodBase.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod_MethodBase.GetType()

For a description of this member, see _MethodBase.GetType.(Inherited from MethodBase.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod_MethodBase.GetTypeInfo(UInt32, UInt32, IntPtr)

Retrieves the type information for an object, which can then be used to get the type information for an interface.(Inherited from MethodBase.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod_MethodBase.GetTypeInfoCount(UInt32)

Retrieves the number of type information interfaces that an object provides (either 0 or 1).(Inherited from MethodBase.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod_MethodBase.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

Provides access to properties and methods exposed by an object.(Inherited from MethodBase.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod_MethodBuilder.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

Maps a set of names to a corresponding set of dispatch identifiers.

System_CAPS_pubinterfaceSystem_CAPS_privmethod_MethodBuilder.GetTypeInfo(UInt32, UInt32, IntPtr)

Retrieves the type information for an object, which can then be used to get the type information for an interface.

System_CAPS_pubinterfaceSystem_CAPS_privmethod_MethodBuilder.GetTypeInfoCount(UInt32)

Retrieves the number of type information interfaces that an object provides (either 0 or 1).

System_CAPS_pubinterfaceSystem_CAPS_privmethod_MethodBuilder.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

Provides access to properties and methods exposed by an object.

System_CAPS_pubinterfaceSystem_CAPS_privmethod_MethodInfo.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

Maps a set of names to a corresponding set of dispatch identifiers.(Inherited from MethodInfo.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod_MethodInfo.GetType()

Provides access to the GetType method from COM.(Inherited from MethodInfo.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod_MethodInfo.GetTypeInfo(UInt32, UInt32, IntPtr)

Retrieves the type information for an object, which can be used to get the type information for an interface.(Inherited from MethodInfo.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod_MethodInfo.GetTypeInfoCount(UInt32)

Retrieves the number of type information interfaces that an object provides (either 0 or 1).(Inherited from MethodInfo.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod_MethodInfo.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

Provides access to properties and methods exposed by an object.(Inherited from MethodInfo.)

Return to top
Show: