TupleElementNamesAttribute コンストラクター

定義

オーバーロード

TupleElementNamesAttribute()

>TupleElementNamesAttribute クラスの新しいインスタンスを初期化します。

TupleElementNamesAttribute(String[])

TupleElementNamesAttribute クラスの新しいインスタンスを初期化します。

TupleElementNamesAttribute()

>TupleElementNamesAttribute クラスの新しいインスタンスを初期化します。

public:
 TupleElementNamesAttribute();
public TupleElementNamesAttribute ();
Public Sub New ()

適用対象

TupleElementNamesAttribute(String[])

ソース:
TupleElementNamesAttribute.cs
ソース:
TupleElementNamesAttribute.cs
ソース:
TupleElementNamesAttribute.cs

TupleElementNamesAttribute クラスの新しいインスタンスを初期化します。

public:
 TupleElementNamesAttribute(cli::array <System::String ^> ^ transformNames);
public TupleElementNamesAttribute (string?[] transformNames);
public TupleElementNamesAttribute (string[] transformNames);
new System.Runtime.CompilerServices.TupleElementNamesAttribute : string[] -> System.Runtime.CompilerServices.TupleElementNamesAttribute
Public Sub New (transformNames As String())

パラメーター

transformNames
String[]

型の構築の先行順の深さ優先走査で、値のタプル発生回数が要素の名前を実行するためであることを指定する文字列配列。

注釈

このコンストラクターは、要素名を持つ値タプル インスタンスを含む型で使用されます。 たとえば、 が 2 つの型パラメーターを持つジェネリック型の場合C、構築された型)C(ValueTuple<T1,T2>,ValueTuple<T1,T2,T3>の使用は、最初の型引数を要素名を持つタプルとして扱い、2 つ目を要素名のないタプルとして扱うことを意図している場合があります。 この場合、適切な属性指定では、 の{ "name1", "name2", null, null, null}値を使用するtransformNames必要があります。

適用対象