ModuleBuilder.GetConstructorToken Метод

Определение

Возвращает маркер, используемый для идентификации указанного конструктора в этом модуле.

Перегрузки

Имя Описание
GetConstructorToken(ConstructorInfo)

Возвращает маркер, используемый для идентификации указанного конструктора в этом модуле.

GetConstructorToken(ConstructorInfo, IEnumerable<Type>)

Возвращает маркер, используемый для идентификации конструктора с указанными атрибутами и типами параметров в этом модуле.

GetConstructorToken(ConstructorInfo)

Возвращает маркер, используемый для идентификации указанного конструктора в этом модуле.

public:
 System::Reflection::Emit::MethodToken GetConstructorToken(System::Reflection::ConstructorInfo ^ con);
public System.Reflection.Emit.MethodToken GetConstructorToken(System.Reflection.ConstructorInfo con);
[System.Runtime.InteropServices.ComVisible(true)]
public System.Reflection.Emit.MethodToken GetConstructorToken(System.Reflection.ConstructorInfo con);
member this.GetConstructorToken : System.Reflection.ConstructorInfo -> System.Reflection.Emit.MethodToken
[<System.Runtime.InteropServices.ComVisible(true)>]
member this.GetConstructorToken : System.Reflection.ConstructorInfo -> System.Reflection.Emit.MethodToken
Public Function GetConstructorToken (con As ConstructorInfo) As MethodToken

Параметры

con
ConstructorInfo

Конструктор, для получения маркера.

Возвращаемое значение

Маркер, используемый для идентификации указанного конструктора в этом модуле.

Атрибуты

Исключения

con равно null.

Применяется к

GetConstructorToken(ConstructorInfo, IEnumerable<Type>)

Возвращает маркер, используемый для идентификации конструктора с указанными атрибутами и типами параметров в этом модуле.

public:
 System::Reflection::Emit::MethodToken GetConstructorToken(System::Reflection::ConstructorInfo ^ constructor, System::Collections::Generic::IEnumerable<Type ^> ^ optionalParameterTypes);
public System.Reflection.Emit.MethodToken GetConstructorToken(System.Reflection.ConstructorInfo constructor, System.Collections.Generic.IEnumerable<Type> optionalParameterTypes);
member this.GetConstructorToken : System.Reflection.ConstructorInfo * seq<Type> -> System.Reflection.Emit.MethodToken
Public Function GetConstructorToken (constructor As ConstructorInfo, optionalParameterTypes As IEnumerable(Of Type)) As MethodToken

Параметры

constructor
ConstructorInfo

Конструктор, для получения маркера.

optionalParameterTypes
IEnumerable<Type>

Коллекция типов необязательных параметров конструктора.

Возвращаемое значение

Маркер, используемый для идентификации указанного конструктора в этом модуле.

Исключения

constructor равно null.

Применяется к