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。