This documentation is archived and is not being maintained.

ModuleBuilder.GetConstructorToken Method

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 con is a null reference (Nothing in Visual Basic).

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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

Show: