Share via


EntityMetadata.Keys Property

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

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; }
<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

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright