AttributeMetadata.IsPrimaryName Property

 

Updated: November 29, 2016

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

Gets or sets whether the attribute represents the primary attribute for the entity.

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

[DataMemberAttribute]
public Nullable<bool> IsPrimaryName { get; internal set; }

Property Value

Type: System.Nullable<Boolean>

Type: Nullable<Boolean>
true if the attribute is primary attribute for the entity; otherwise, false.

If the value of this property is true, the value of the attribute is what will be displayed in lookup fields in the application.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Show: