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.GetConstructorToken

Returns the token used to identify the specified constructor within this module.

[Visual Basic]
Public Function GetConstructorToken( _
   ByVal con As ConstructorInfo _
) As MethodToken
[C#]
public MethodToken GetConstructorToken(
   ConstructorInfo con
);
[C++]
public: MethodToken GetConstructorToken(
   ConstructorInfo* con
);
[JScript]
public function GetConstructorToken(
   con : ConstructorInfo
) : MethodToken;

Parameters

con
A ConstructorInfo object representing the constructor to get a token for.

Return Value

Returns the token used to identify the constructor represented by con within this module.

Exceptions

Exception Type Condition
ArgumentNullException if con is a null reference (in Visual Basic Nothing)

See Also

ModuleBuilder Class | ModuleBuilder Members | System.Reflection.Emit Namespace