NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

MethodBuilder Methods

The methods of the MethodBuilder class are listed below. For a complete list of MethodBuilder class members, see the MethodBuilder Members topic.

Public:

AddDeclarativeSecurity Adds declarative security to this method.
CreateMethodBody Creates the body of the method using the given array of IL instructions.
DefineParameter Defines a parameter of this method.
Equals Determines whether the given object is equal to this instance.
GetBaseDefinition Return the base implementation for a method.
GetCustomAttributes Overloaded. Overloaded. Returns the custom attributes defined for this method.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetILGenerator Returns an ILGenerator for this method.
GetImplementationFlags Gets the implementation flags for the method.
GetMethodImplementationFlags Returns the implementation flags for the method.
GetModule Returns a reference to the module that contains this method.
GetParameters Returns the parameters of this method.
GetToken Returns the MethodToken that represents the token for this method.
GetType (inherited from Object) Gets the Type of the Object.
Invoke Overloaded. [To be supplied.]
IsDefined Checks if the specified custom attribute type is defined.
SetCustomAttribute Overloaded. Sets a custom attribute.
SetImplementationFlags Sets the implementation flags for this method.
SetMarshal Sets marshalling information for the return type of this method.
SetSymCustomAttribute Set a custom attribute using a specified custom attribute blob.
ToString Returns this MethodBuilder instance as a String.

Protected:

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

MethodBuilder Class | System.Reflection.Emit Namespace