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
public MethodToken GetConstructorToken(
 ConstructorInfo con
public: MethodToken GetConstructorToken(
 ConstructorInfo* con
public function GetConstructorToken(
   con : ConstructorInfo
) : MethodToken;


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.


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


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