SignatureHelper.GetPropertySigHelper メソッド

定義

プロパティのシグネチャ ヘルパーを返します。

オーバーロード

GetPropertySigHelper(Module, Type, Type[])

プロパティを格納している動的モジュール、プロパティの型、およびプロパティの引数を指定して、プロパティのシグネチャ ヘルパーを返します。

GetPropertySigHelper(Module, Type, Type[], Type[], Type[], Type[][], Type[][])

プロパティを格納している動的モジュール、プロパティの型、プロパティの引数、および戻り値の型と引数のカスタム修飾子を指定して、プロパティのシグネチャ ヘルパーを返します。

GetPropertySigHelper(Module, CallingConventions, Type, Type[], Type[], Type[], Type[][], Type[][])

プロパティを格納している動的モジュール、呼び出し規約、プロパティの型、プロパティの引数、および戻り値の型と引数のカスタム修飾子を指定して、プロパティのシグネチャ ヘルパーを返します。

GetPropertySigHelper(Module, Type, Type[])

ソース:
SignatureHelper.cs
ソース:
SignatureHelper.cs
ソース:
SignatureHelper.cs

プロパティを格納している動的モジュール、プロパティの型、およびプロパティの引数を指定して、プロパティのシグネチャ ヘルパーを返します。

public:
 static System::Reflection::Emit::SignatureHelper ^ GetPropertySigHelper(System::Reflection::Module ^ mod, Type ^ returnType, cli::array <Type ^> ^ parameterTypes);
public static System.Reflection.Emit.SignatureHelper GetPropertySigHelper (System.Reflection.Module? mod, Type? returnType, Type[]? parameterTypes);
public static System.Reflection.Emit.SignatureHelper GetPropertySigHelper (System.Reflection.Module mod, Type returnType, Type[] parameterTypes);
static member GetPropertySigHelper : System.Reflection.Module * Type * Type[] -> System.Reflection.Emit.SignatureHelper
Public Shared Function GetPropertySigHelper (mod As Module, returnType As Type, parameterTypes As Type()) As SignatureHelper

パラメーター

mod
Module

SignatureHelper を要求するプロパティが格納されている ModuleBuilder

returnType
Type

プロパティの型。

parameterTypes
Type[]

引数型。プロパティに引数がない場合は null

戻り値

プロパティの SignatureHelper オブジェクト。

例外

modnullです。

- または -

parameterTypes の要素は null です。

modModuleBuilder ではありません。

注釈

省略可能または必須のカスタム修飾子を持つプロパティのシグネチャ ヘルパーを作成するには、 メソッド オーバーロードを GetPropertySigHelper(Module, Type, Type[], Type[], Type[], Type[][], Type[][]) 使用します。

適用対象

GetPropertySigHelper(Module, Type, Type[], Type[], Type[], Type[][], Type[][])

ソース:
SignatureHelper.cs
ソース:
SignatureHelper.cs
ソース:
SignatureHelper.cs

プロパティを格納している動的モジュール、プロパティの型、プロパティの引数、および戻り値の型と引数のカスタム修飾子を指定して、プロパティのシグネチャ ヘルパーを返します。

public:
 static System::Reflection::Emit::SignatureHelper ^ GetPropertySigHelper(System::Reflection::Module ^ mod, Type ^ returnType, cli::array <Type ^> ^ requiredReturnTypeCustomModifiers, cli::array <Type ^> ^ optionalReturnTypeCustomModifiers, cli::array <Type ^> ^ parameterTypes, cli::array <cli::array <Type ^> ^> ^ requiredParameterTypeCustomModifiers, cli::array <cli::array <Type ^> ^> ^ optionalParameterTypeCustomModifiers);
public static System.Reflection.Emit.SignatureHelper GetPropertySigHelper (System.Reflection.Module? mod, Type? returnType, Type[]? requiredReturnTypeCustomModifiers, Type[]? optionalReturnTypeCustomModifiers, Type[]? parameterTypes, Type[][]? requiredParameterTypeCustomModifiers, Type[][]? optionalParameterTypeCustomModifiers);
public static System.Reflection.Emit.SignatureHelper GetPropertySigHelper (System.Reflection.Module mod, Type returnType, Type[] requiredReturnTypeCustomModifiers, Type[] optionalReturnTypeCustomModifiers, Type[] parameterTypes, Type[][] requiredParameterTypeCustomModifiers, Type[][] optionalParameterTypeCustomModifiers);
static member GetPropertySigHelper : System.Reflection.Module * Type * Type[] * Type[] * Type[] * Type[][] * Type[][] -> System.Reflection.Emit.SignatureHelper
Public Shared Function GetPropertySigHelper (mod As Module, returnType As Type, requiredReturnTypeCustomModifiers As Type(), optionalReturnTypeCustomModifiers As Type(), parameterTypes As Type(), requiredParameterTypeCustomModifiers As Type()(), optionalParameterTypeCustomModifiers As Type()()) As SignatureHelper

パラメーター

mod
Module

SignatureHelper を要求するプロパティが格納されている ModuleBuilder

returnType
Type

プロパティの型。

requiredReturnTypeCustomModifiers
Type[]

IsConstIsBoxed などの、戻り値の型の必須のカスタム修飾子を表す型の配列。 戻り値の型が必須のカスタム修飾子を持たない場合は、null を指定します。

optionalReturnTypeCustomModifiers
Type[]

IsConstIsBoxed などの、戻り値の型のオプションのカスタム修飾子を表す型の配列。 戻り値の型に省略可能のカスタム修飾子がない場合は、null を指定します。

parameterTypes
Type[]

プロパティの引数の型。プロパティに引数がない場合は null

requiredParameterTypeCustomModifiers
Type[][]

型の配列の配列。 型の各配列は、プロパティの対応する引数の必須のカスタム修飾子を表します。 特定の引数に必須のカスタム修飾子がない場合は、型の配列の代わりに null を指定します。 プロパティに引数がない場合、またはどの引数にも必須のカスタム修飾子がない場合は、配列の配列の代わりに null を指定します。

optionalParameterTypeCustomModifiers
Type[][]

型の配列の配列。 型の各配列は、プロパティの対応する引数のオプションのカスタム修飾子を表します。 特定の引数にオプションのカスタム修飾子がない場合は、型の配列の代わりに null を指定します。 プロパティに引数がない場合、またはどの引数にもオプションのカスタム修飾子がない場合は、配列の配列の代わりに null を指定します。

戻り値

プロパティの SignatureHelper オブジェクト。

例外

modnullです。

- または -

parameterTypes の要素は null です。

- または -

指定したカスタム修飾子の 1 つが null です。 ただし、null は、どの引数のカスタム修飾子の配列に対しても指定できます。

シグネチャが既に完了しています。

- または -

modModuleBuilder ではありません。

- または -

指定したカスタム修飾子の 1 つが配列型です。

- または -

指定したカスタム修飾子の 1 つがオープン ジェネリック型です。 つまり、そのカスタム修飾子に対する ContainsGenericParameters プロパティが true です。

- または -

requiredParameterTypeCustomModifiers または optionalParameterTypeCustomModifiers のサイズは parameterTypes のサイズと同じではありません。

注釈

カスタム修飾子を System.Runtime.CompilerServices 表すクラスについては、名前空間を参照してください。

プロパティにカスタム修飾子がない場合は、 メソッド オーバーロードを使用します GetPropertySigHelper(Module, Type, Type[])

適用対象

GetPropertySigHelper(Module, CallingConventions, Type, Type[], Type[], Type[], Type[][], Type[][])

ソース:
SignatureHelper.cs
ソース:
SignatureHelper.cs
ソース:
SignatureHelper.cs

プロパティを格納している動的モジュール、呼び出し規約、プロパティの型、プロパティの引数、および戻り値の型と引数のカスタム修飾子を指定して、プロパティのシグネチャ ヘルパーを返します。

public:
 static System::Reflection::Emit::SignatureHelper ^ GetPropertySigHelper(System::Reflection::Module ^ mod, System::Reflection::CallingConventions callingConvention, Type ^ returnType, cli::array <Type ^> ^ requiredReturnTypeCustomModifiers, cli::array <Type ^> ^ optionalReturnTypeCustomModifiers, cli::array <Type ^> ^ parameterTypes, cli::array <cli::array <Type ^> ^> ^ requiredParameterTypeCustomModifiers, cli::array <cli::array <Type ^> ^> ^ optionalParameterTypeCustomModifiers);
public static System.Reflection.Emit.SignatureHelper GetPropertySigHelper (System.Reflection.Module? mod, System.Reflection.CallingConventions callingConvention, Type? returnType, Type[]? requiredReturnTypeCustomModifiers, Type[]? optionalReturnTypeCustomModifiers, Type[]? parameterTypes, Type[][]? requiredParameterTypeCustomModifiers, Type[][]? optionalParameterTypeCustomModifiers);
public static System.Reflection.Emit.SignatureHelper GetPropertySigHelper (System.Reflection.Module mod, System.Reflection.CallingConventions callingConvention, Type returnType, Type[] requiredReturnTypeCustomModifiers, Type[] optionalReturnTypeCustomModifiers, Type[] parameterTypes, Type[][] requiredParameterTypeCustomModifiers, Type[][] optionalParameterTypeCustomModifiers);
static member GetPropertySigHelper : System.Reflection.Module * System.Reflection.CallingConventions * Type * Type[] * Type[] * Type[] * Type[][] * Type[][] -> System.Reflection.Emit.SignatureHelper
Public Shared Function GetPropertySigHelper (mod As Module, callingConvention As CallingConventions, returnType As Type, requiredReturnTypeCustomModifiers As Type(), optionalReturnTypeCustomModifiers As Type(), parameterTypes As Type(), requiredParameterTypeCustomModifiers As Type()(), optionalParameterTypeCustomModifiers As Type()()) As SignatureHelper

パラメーター

mod
Module

SignatureHelper を要求するプロパティが格納されている ModuleBuilder

callingConvention
CallingConventions

プロパティ アクセサーの呼び出し規則。

returnType
Type

プロパティの型。

requiredReturnTypeCustomModifiers
Type[]

IsConstIsBoxed などの、戻り値の型の必須のカスタム修飾子を表す型の配列。 戻り値の型が必須のカスタム修飾子を持たない場合は、null を指定します。

optionalReturnTypeCustomModifiers
Type[]

IsConstIsBoxed などの、戻り値の型のオプションのカスタム修飾子を表す型の配列。 戻り値の型に省略可能のカスタム修飾子がない場合は、null を指定します。

parameterTypes
Type[]

プロパティの引数の型。プロパティに引数がない場合は null

requiredParameterTypeCustomModifiers
Type[][]

型の配列の配列。 型の各配列は、プロパティの対応する引数の必須のカスタム修飾子を表します。 特定の引数に必須のカスタム修飾子がない場合は、型の配列の代わりに null を指定します。 プロパティに引数がない場合、またはどの引数にも必須のカスタム修飾子がない場合は、配列の配列の代わりに null を指定します。

optionalParameterTypeCustomModifiers
Type[][]

型の配列の配列。 型の各配列は、プロパティの対応する引数のオプションのカスタム修飾子を表します。 特定の引数にオプションのカスタム修飾子がない場合は、型の配列の代わりに null を指定します。 プロパティに引数がない場合、またはどの引数にもオプションのカスタム修飾子がない場合は、配列の配列の代わりに null を指定します。

戻り値

プロパティの SignatureHelper オブジェクト。

例外

modnullです。

- または -

parameterTypes の要素は null です。

- または -

指定したカスタム修飾子の 1 つが null です。 ただし、null は、どの引数のカスタム修飾子の配列に対しても指定できます。

シグネチャが既に完了しています。

- または -

modModuleBuilder ではありません。

- または -

指定したカスタム修飾子の 1 つが配列型です。

- または -

指定したカスタム修飾子の 1 つがオープン ジェネリック型です。 つまり、そのカスタム修飾子に対する ContainsGenericParameters プロパティが true です。

- または -

requiredParameterTypeCustomModifiers または optionalParameterTypeCustomModifiers のサイズは parameterTypes のサイズと同じではありません。

注釈

カスタム修飾子を System.Runtime.CompilerServices 表すクラスについては、名前空間を参照してください。

プロパティにカスタム修飾子がない場合は、 メソッド オーバーロードを使用します GetPropertySigHelper(Module, Type, Type[])

Note

このメソッド オーバーロードは、.NET Framework 3.5 以降で導入されます。

適用対象