Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

MethodBuilder Members

MethodBuilder overview

Public Properties

public propertyAttributes Overridden. Retrieves the attributes for this method.
public propertyCallingConvention Overridden. Returns the calling convention of the method.
public propertyDeclaringType Overridden. Returns the type that declares this method.
public propertyInitLocals Gets or sets whether the local variables in this method should be zero initialized. The default value of this property is true.
public propertyIsAbstract (inherited from MethodBase) Gets a value indicating whether the method is abstract.
public propertyIsAssembly (inherited from MethodBase) Gets a value indicating whether this method can be called by other classes in the same assembly.
public propertyIsConstructor (inherited from MethodBase) Gets a value indicating whether the method is a constructor.
public propertyIsFamily (inherited from MethodBase) Gets a value indicating whether access to this method is restricted to members of the class and members of its derived classes.
public propertyIsFamilyAndAssembly (inherited from MethodBase) Gets a value indicating whether this method can be called by derived classes if they are in the same assembly.
public propertyIsFamilyOrAssembly (inherited from MethodBase) Gets a value indicating whether this method can be called by derived classes, wherever they are, and by all classes in the same assembly.
public propertyIsFinal (inherited from MethodBase) Gets a value indicating whether this method is final.
public propertyIsHideBySig (inherited from MethodBase) Gets a value indicating whether only a member of the same kind with exactly the same signature is hidden in the derived class.
public propertyIsPrivate (inherited from MethodBase) Gets a value indicating whether this member is private.
public propertyIsPublic (inherited from MethodBase) Gets a value indicating whether this is a public method.
public propertyIsSpecialName (inherited from MethodBase) Gets a value indicating whether this method has a special name.
public propertyIsStatic (inherited from MethodBase) Gets a value indicating whether the method is static (Shared in Visual Basic) .
public propertyIsVirtual (inherited from MethodBase) Gets a value indicating whether the method is virtual (Overridable in Visual Basic) .
public propertyMemberType (inherited from MethodInfo) Overridden. Gets a value indicating that this member is a method.
public propertyMethodHandle Overridden. Retrieves the internal handle for the method. Use this handle to access the underlying metadata handle.
public propertyName Overridden. Retrieves the name of this method.
public propertyReflectedType Overridden. Retrieves the class that was used in reflection to obtain this object.
public propertyReturnType Overridden. Retrieves the type of this methods return value.
public propertyReturnTypeCustomAttributes Overridden. Returns the custom attributes of the method's return type.
public propertySignature Retrieves the signature of the field.

Public Methods

public methodAddDeclarativeSecurity Adds declarative security to this method.
public methodCreateMethodBody Creates the body of the method using a supplied byte array of Microsoft Intermediate Language (MSIL) instructions.
public methodDefineParameter Defines a parameter of this method.
public methodEquals Overridden. Determines whether the given object is equal to this instance.
public methodGetBaseDefinition Overridden. Return the base implementation for a method.
public methodGetCustomAttributes Overloaded. Overridden. Returns the custom attributes defined for this method.
public methodGetHashCode Overridden. Gets the hash code for this method.
public methodGetILGenerator Overloaded. Returns an ILGenerator for this method.
public methodGetMethodImplementationFlags Overridden. Returns the implementation flags for the method.
public methodGetModule Returns a reference to the module that contains this method.
public methodGetParameters Overridden. Returns the parameters of this method.
public methodGetToken Returns the MethodToken that represents the token for this method.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodInvoke Overloaded.
public methodIsDefined Overridden. Checks if the specified custom attribute type is defined.
public methodSetCustomAttribute Overloaded. Sets a custom attribute.
public methodSetImplementationFlags Sets the implementation flags for this method.
public methodSetMarshal Sets marshaling information for the return type of this method.
public methodSetSymCustomAttribute Set a symbolic custom attribute using a blob.
public methodToString Overridden. Returns this MethodBuilder instance as a string.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

MethodBuilder Class | System.Reflection.Emit Namespace

Show:
© 2015 Microsoft