次の方法で共有


ETagAttribute.PropertyNames プロパティ

ETagAttribute に使用されているプロパティの名前を取得します。

名前空間:  System.Data.Services
アセンブリ:  Microsoft.Data.Services (Microsoft.Data.Services.dll)

構文

'宣言
Public ReadOnly Property PropertyNames As ReadOnlyCollection(Of String)
    Get
'使用
Dim instance As ETagAttribute
Dim value As ReadOnlyCollection(Of String)

value = instance.PropertyNames
public ReadOnlyCollection<string> PropertyNames { get; }
public:
property ReadOnlyCollection<String^>^ PropertyNames {
    ReadOnlyCollection<String^>^ get ();
}
member PropertyNames : ReadOnlyCollection<string>
function get PropertyNames () : ReadOnlyCollection<String>

プロパティ値

型: System.Collections.ObjectModel.ReadOnlyCollection<String>
プロパティの名前を含んでいる文字列値。

説明

ETagAttribute コンストラクターには、型の eTag 値を構築するための一連のプロパティ名がパラメーターとして渡されます。 型に eTag が定義されている場合、その型に対するすべての要求に対し、サーバーがオプティミスティック同時実行制御チェックを自動的に実装します。 キー プロパティ、複合型プロパティ、ナビゲーション プロパティのいずれかが指定されている場合、ArgumentException がスローされます。

関連項目

参照

ETagAttribute クラス

System.Data.Services 名前空間