DataServiceKeyAttribute.KeyNames Property

Gets the names of key attributes.

Namespace:  System.Data.Services.Common
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

Syntax

'Declaration
Public ReadOnly Property KeyNames As ReadOnlyCollection(Of String)
    Get
'Usage
Dim instance As DataServiceKeyAttribute 
Dim value As ReadOnlyCollection(Of String)

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

Property Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<String>
String value that contains names of key attributes.

See Also

Reference

DataServiceKeyAttribute Class

System.Data.Services.Common Namespace