Partilhar via


AttributeMetadata.IsPrimaryId Property

 

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

Gets whether the attribute represents the unique identifier for the record.

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

Syntax

[DataMemberAttribute]
public Nullable<bool> IsPrimaryId { get; internal set; }
<DataMemberAttribute>
Public Property IsPrimaryId As Nullable(Of Boolean)
    Get
    Friend Set
End Property

Property Value

Type: System.Nullable<Boolean>

Type: Nullable<Boolean>
true if the attribute is the unique identifier for the record; otherwise, false.

Remarks

Entities that contain an address may have more than one attribute where isPrimaryId is true.

See Also

AttributeMetadata Class
Microsoft.Xrm.Sdk.Metadata Namespace

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright