PrimaryIdAttribute Property
TOC
Collapse the table of content
Expand the table of content

EntityMetadata.PrimaryIdAttribute Property

 

Gets the name of the attribute that is the primary id for the entity.

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

[DataMemberAttribute]
public string PrimaryIdAttribute { get; internal set; }

Property Value

Type: System.String

Type: String
The name of the attribute that is the primary id for the entity.

The value is usually <entity logical name> + “id”.

Return to top

Microsoft Dynamics CRM 2016 and CRM Online

© 2016 Microsoft. All rights reserved. Copyright

Community Additions

ADD
Show:
© 2016 Microsoft