ETagAttribute.PropertyNames 屬性

定義

取得 ETagAttribute 中所使用屬性的名稱。

public:
 property System::Collections::ObjectModel::ReadOnlyCollection<System::String ^> ^ PropertyNames { System::Collections::ObjectModel::ReadOnlyCollection<System::String ^> ^ get(); };
public System.Collections.ObjectModel.ReadOnlyCollection<string> PropertyNames { get; }
member this.PropertyNames : System.Collections.ObjectModel.ReadOnlyCollection<string>
Public ReadOnly Property PropertyNames As ReadOnlyCollection(Of String)

屬性值

包含屬性名稱的字串值。

備註

建構函式的參數 ETagAttribute 是一組屬性名稱,用來組成類型的 eTag 值。 如果類型已定義 eTag,伺服器會自動對類型的所有要求實作開放式並行存取檢查。 如果指定索引鍵屬性、複雜類型屬性或導覽屬性, ArgumentException 則會擲回 。

適用於