Κοινή χρήση μέσω


EntityMetadata.PrimaryIdAttribute Property

 

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

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

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright