Condividi tramite


Proprietà EntityMetadata.PrimaryNameAttribute

Si applica a: CRM 2015 on-prem, CRM Online

Gets the name of the primary attribute for an entity.

Spazio dei nomi: Microsoft.Xrm.Sdk.Metadata
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Sintassi

'Dichiarazione
<DataMemberAttribute> _
Public Property PrimaryNameAttribute As String
[DataMemberAttribute] 
public string PrimaryNameAttribute { get; }

Valore proprietà

Type: Stringa
The name of the primary attribute for an entity..

Note

Each entity that contains records that can appear in the application will have a primary attribute. Each custom entity will have a primary attribute. The default name for the primary attribute is ‘name’ and this is the most common value for PrimaryNameAttribute. The value in the corresponding attribute is the value that will appear in a lookup attribute when that record is selected. Many entities do not appear in the application and do not have a value set for PrimaryNameAttribute.

Thread Safety

Tutti i membri statici pubblici (Shared in Visual Basic) di questo tipo sono thread-safe. Non è garantito che i membri di istanza siano thread-safe.

Piattaforme

Piattaforme di sviluppo

Windows Vista, Windows Server 2003 e

Piattaforme di destinazione

Windows Vista,Windows XP

Vedere anche

Riferimento

Classe EntityMetadata
Membri EntityMetadata
Spazio dei nomi Microsoft.Xrm.Sdk.Metadata

Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.