Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetConstructorToken Method (ConstructorInfo, IEnumerable(Type))

ModuleBuilder::GetConstructorToken Method (ConstructorInfo, IEnumerable<Type>)

.NET Framework 4.6 and 4.5

Returns the token used to identify the constructor that has the specified attributes and parameter types within this module.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public:
MethodToken GetConstructorToken(
	ConstructorInfo^ constructor, 
	IEnumerable<Type^>^ optionalParameterTypes
)

Parameters

constructor
Type: System.Reflection::ConstructorInfo

The constructor to get a token for.

optionalParameterTypes
Type: System.Collections.Generic::IEnumerable<Type>

A collection of the types of the optional parameters to the constructor.

Return Value

Type: System.Reflection.Emit::MethodToken
The token used to identify the specified constructor within this module.

ExceptionCondition
ArgumentNullException

constructor is nullptr.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft