EntityMetadata.Keys Property

 

Applies To: Dynamics CRM 2015

Gets an array of keys for an entity.

Namespace:   Microsoft.Xrm.Sdk.Metadata
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Syntax

[DataMemberAttribute(Order = 71)]
public EntityKeyMetadata[] Keys { get; internal set; }
public:
[DataMemberAttribute(Order = 71)]
property array<EntityKeyMetadata^>^ Keys {
    array<EntityKeyMetadata^>^ get();
    internal: void set(array<EntityKeyMetadata^>^ value);
}
[<DataMemberAttribute(Order = 71)>]
member Keys : EntityKeyMetadata[] with get, internal set
<DataMemberAttribute(Order := 71)>
Public Property Keys As EntityKeyMetadata()
    Get
    Friend Set
End Property

Property Value

Type: Microsoft.Xrm.Sdk.Metadata.EntityKeyMetadata[]

Type: EntityKeyMetadata[]
An array of keys for an entity.

Remarks

When an entity has alternate keys defined, this property contains the definitions for those keys.

See Also

EntityMetadata Class
Microsoft.Xrm.Sdk.Metadata Namespace
Define alternate keys for an entity

Return to top

© 2016 Microsoft. All rights reserved. Copyright