获取 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 类型值的属性名称。 如果类型定义了 eTags,则服务器会在所有对类型的请求上自动实现开放式并发检查。 如果指定了键属性、复杂类型属性或导航属性,则引发 ArgumentException。