The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ModuleBuilder::GetConstructorToken Method (ConstructorInfo^, IEnumerable<Type^>^)
.NET Framework (current version)
Returns the token used to identify the constructor that has the specified attributes and parameter types within this module.
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::MethodTokenThe token used to identify the specified constructor within this module.
| Exception | Condition |
|---|---|
| ArgumentNullException | constructor is null. |
.NET Framework
Available since 4.5
Available since 4.5
Show: