ModuleBuilder.GetConstructorToken メソッド
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
このモジュール内で指定したコンストラクターの識別に使用したトークンを返します。
GetConstructorToken(ConstructorInfo) |
このモジュール内で指定したコンストラクターの識別に使用したトークンを返します。 |
GetConstructorToken(ConstructorInfo, IEnumerable<Type>) |
このモジュール内の指定された属性とパラメーターの型を持つコンストラクターの識別に使用したトークンを返します。 |
このモジュール内で指定したコンストラクターの識別に使用したトークンを返します。
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
です。
適用対象
.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 |
このモジュール内の指定された属性とパラメーターの型を持つコンストラクターの識別に使用したトークンを返します。
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
です。
適用対象
.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 |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。