EntityMetadata.PrimaryIdAttribute Property

 

Applies To: Dynamics CRM 2015

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)

Syntax

[DataMemberAttribute]
public string PrimaryIdAttribute { get; internal set; }
public:
[DataMemberAttribute]
property String^ PrimaryIdAttribute {
    String^ get();
    internal: void set(String^ value);
}
[<DataMemberAttribute>]
member PrimaryIdAttribute : string with get, internal set
<DataMemberAttribute>
Public Property PrimaryIdAttribute As String
    Get
    Friend Set
End Property

Property Value

Type: System.String

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

Remarks

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

See Also

EntityMetadata Class
Microsoft.Xrm.Sdk.Metadata Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright