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!

ModuleBuilder Methods

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

Public:

CreateGlobalFunctions Fixes up a dynamic module containing global functions.
DefineDocument Define a document for source.
DefineEnum Defines an enumeration type with that is a value type with a single non-static field called value__ of the specified type.
DefineGlobalMethod Overloaded. Defines a global method.
DefineInitializedData Defines initialized data field in the .sdata section of the PE file.
DefinePInvokeMethod Overloaded. Defines a PInvoke method.
DefineResource Overloaded. Defines a managed embedded resource to be stored in this module.
DefineType Overloaded. Constructs a TypeBuilder.
DefineUninitializedData Defines uninitialized data field in the .sdata section of the PE file.
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
FindTypes (inherited from Module) Returns an array of classes accepted by the given filter and filter criteria.
GetArrayMethod Returns the named method on an array class.
GetArrayMethodToken Returns the token for the named method on an array class.
GetConstructorDefToken Deprecated. Return the token defined in the original module for the ConstructorInfo.
GetConstructorToken Returns the token used to identify the specified constructor within this module.
GetCustomAttributes (inherited from Module) Overloaded. [To be supplied.]
GetField (inherited from Module) Overloaded. [To be supplied.]
GetFields (inherited from Module) To be supplied
GetFieldToken Returns the token used to identify the specified field within this module.
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.
GetMethod (inherited from Module) Overloaded. [To be supplied.]
GetMethodDefToken Deprecated. Returns the token in the original module for the MethodInfo.
GetMethods (inherited from Module) Returns an array of all of the global methods defined on the Module.
GetMethodToken Returns the token used to identify the specified method within this module.
GetObjectData (inherited from Module) [To be supplied.]
GetSignatureToken Overloaded. Defines a signature token.
GetSignerCertificate (inherited from Module) [To be supplied.]
GetStringConstant Returns the token of the given string in the module's constant pool.
GetSymWriter Returns the symbol writer associated with this dynamic module.
GetType (inherited from Module) Overloaded. [To be supplied.]
GetTypes (inherited from Module) Returns all the classes defined within this module.
GetTypeToken Overloaded. Returns a type token. Tokens are used in IL instructions to identify objects. Tokens are relative to the module in which they are contained. For example, the token value for a String is likely to be different in different modules. When GetTypeToken is called, a reference is added to the module. The reference becomes a permanent part of the module. Multiple calls to GetTypeToken with the same argument have no additional effect.
IsDefined (inherited from Module) Determines if the attributeType is defined on this module.
IsTransient Checks if this dynamic module is transient.
SetCustomAttribute Overloaded. Sets a custom attribute.
SetEntryPoint Overloaded. Sets the entry point of the module to the given method.
SetSymCustomAttribute Sets the custom attribute that is stored with the symbolic information.
SetUserEntryPoint Sets the user entry point.
ToString (inherited from Module) Returns the name of the module.

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.
GetMethodImpl (inherited from Module) To be supplied.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

ModuleBuilder Class | System.Reflection.Emit Namespace