英語で読む

次の方法で共有


ModuleBuilder.GetConstructorToken メソッド

定義

このモジュール内で指定したコンストラクターの識別に使用したトークンを返します。

オーバーロード

GetConstructorToken(ConstructorInfo)

このモジュール内で指定したコンストラクターの識別に使用したトークンを返します。

GetConstructorToken(ConstructorInfo, IEnumerable<Type>)

このモジュール内の指定された属性とパラメーターの型を持つコンストラクターの識別に使用したトークンを返します。

GetConstructorToken(ConstructorInfo)

このモジュール内で指定したコンストラクターの識別に使用したトークンを返します。

C#
public System.Reflection.Emit.MethodToken GetConstructorToken (System.Reflection.ConstructorInfo con);
C#
[System.Runtime.InteropServices.ComVisible(true)]
public System.Reflection.Emit.MethodToken GetConstructorToken (System.Reflection.ConstructorInfo con);

パラメーター

con
ConstructorInfo

トークンを取得するコンストラクター。

戻り値

このモジュール内で指定したコンストラクターの識別に使用したトークン。

属性

例外

connullです。

適用対象

.NET Framework 4.8.1 およびその他のバージョン
製品 バージョン
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetConstructorToken(ConstructorInfo, IEnumerable<Type>)

このモジュール内の指定された属性とパラメーターの型を持つコンストラクターの識別に使用したトークンを返します。

C#
public System.Reflection.Emit.MethodToken GetConstructorToken (System.Reflection.ConstructorInfo constructor, System.Collections.Generic.IEnumerable<Type> optionalParameterTypes);

パラメーター

constructor
ConstructorInfo

トークンを取得するコンストラクター。

optionalParameterTypes
IEnumerable<Type>

コンストラクターに対する省略可能なパラメーターの型のコレクション。

戻り値

このモジュール内で指定したコンストラクターの識別に使用したトークン。

例外

constructornullです。

適用対象

.NET Framework 4.8.1 およびその他のバージョン
製品 バージョン
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1