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!

TypeBuilder Methods

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

Public:

AddDeclarativeSecurity Adds declarative security to this type.
AddInterfaceImplementation Adds an interface that this type implements.
CreateType Creates a Type object for the class. After defining fields and methods on the class, CreateType is called in order to load its Type object.
DefineConstructor Adds a new constructor to the class, with the given attributes and signature.
DefineDefaultConstructor Defines the default constructor. The constructor defined here will simply call the default constructor of the parent.
DefineEvent Adds a new event to the class, with the given name, attributes and event type.
DefineField Adds a new fieldto the class, with the given name, attributes and field type.
DefineInitializedData Defines initialized data field in the .sdata section of the PE file.
DefineMethod Overloaded. Defines a method.
DefineMethodOverride Specifies a given method body that implements a given method declaration.
DefineNestedType Overloaded. Defines a nested type.
DefinePInvokeMethod Overloaded. Defines a PInvoke method.
DefineProperty Adds a new property to the class, with the given name and property signature.
DefineTypeInitializer Defines the initializer for this type.
DefineUninitializedData Defines uninitialized data field in the .sdata section of the PE file.
Equals (inherited from Type) Overloaded. Determines if the underlying system type of the current Type is the same as the underlying system type of the specified Object or Type.
FindInterfaces (inherited from Type) Returns an array of Type objects representing a filtered list of interfaces implemented or inherited by the current Type.
FindMembers (inherited from Type) Returns a filtered array of MemberInfo objects of the specified member type.
GetArrayRank (inherited from Type) When implemented by a derived class, gets the number of dimensions in an Array.
GetConstructor (inherited from Type) Overloaded. Gets a specific constructor of the current Type.
GetConstructors (inherited from Type) Overloaded. Gets the constructors of the current Type.
GetCustomAttributes Overloaded. Overloaded. Returns the custom attributes defined for this type.
GetDefaultMembers (inherited from Type) Searches for the members defined for the current Type whose DefaultMemberAttribute is set.
GetElementType Not implemented.
GetEvent (inherited from Type) Overloaded. Gets a specific event declared or inherited by the current Type.
GetEvents Overloaded. [To be supplied.]
GetField (inherited from Type) Overloaded. Gets a specific field of the current Type.
GetFields (inherited from Type) Overloaded. Gets the fields of the current Type.
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.
GetInterface Overloaded. [To be supplied.]
GetInterfaceMap Returns an interface mapping for the requested interface.
GetInterfaces Returns an array of all the interfaces implemented on this a class and its super classes.
GetMember (inherited from Type) Overloaded. Gets the specified members of the current Type.
GetMembers (inherited from Type) Overloaded. Gets the members (properties, methods, fields, events, and so on) of the current Type.
GetMethod (inherited from Type) Overloaded. Gets a specific method of the current Type.
GetMethods (inherited from Type) Overloaded. Gets the methods of the current Type.
GetNestedType Overloaded. [To be supplied.]
GetNestedTypes (inherited from Type) Overloaded. Gets the types nested within the current Type.
GetProperties Overloaded. [To be supplied.]
GetProperty (inherited from Type) Overloaded. Gets a specific property of the current Type.
GetType (inherited from Object) Gets the Type of the Object.
InvokeMember (inherited from Type) Overloaded. Invokes a specific member of the current Type; essentially calls a constructor member or a method member, gets or sets a property member, gets or sets a data field member, or gets or sets an element of an array member.
IsAssignableFrom (inherited from Type) Determines whether an instance of the specified type can be assigned to the current Type instance.
IsDefined Checks if the specified custom attribute type is defined.
IsInstanceOfType (inherited from Type) Determines whether the specified object is an instance of the Type.
IsSubclassOf (inherited from Type) Determines whether the current Type is a subclass of the specified class.
SetCustomAttribute Overloaded. Sets a custom attribute.
SetParent Sets the parent of this Type.
ToString Returns the name of the type excluding the namespace.

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.
GetAttributeFlagsImpl Returns the implementation attribute flags.
GetConstructorImpl Not implemented.
GetMethodImpl Not implemented.
GetPropertyImpl Not implemented.
HasElementTypeImpl Not implemented.
IsArrayImpl Returns false always.
IsByRefImpl Returns false always.
IsCOMObjectImpl Checks if this type imports a COM type.
IsContextfulImpl (inherited from Type) Implements the IsContextful property and determines whether the Type can be hosted in a context.
IsMarshalByRefImpl (inherited from Type) Implements the IsMarshalByRef property and determines whether the Type is marshalled by reference.
IsPointerImpl Returns false always.
IsPrimitiveImpl Returns false always.
IsValueTypeImpl Returns false always.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

TypeBuilder Class | System.Reflection.Emit Namespace