AttributeMetadata.IsPrimaryId Property


Applies To: Dynamics CRM 2015

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)


public Nullable<bool> IsPrimaryId { get; internal set; }
property Nullable<bool> IsPrimaryId {
    Nullable<bool> get();
    internal: void set(Nullable<bool> value);
member IsPrimaryId : Nullable<bool> with get, internal set
Public Property IsPrimaryId As Nullable(Of Boolean)
    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.


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

© 2016 Microsoft. All rights reserved. Copyright