Propriedade EntityMetadata.PrimaryNameAttribute

Aplica-se a: CRM 2015 on-prem, CRM Online

Gets the name of the primary attribute for an entity.

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

Sintaxe

'Declaração
<DataMemberAttribute> _
Public Property PrimaryNameAttribute As String
[DataMemberAttribute] 
public string PrimaryNameAttribute { get; }

Valor de Propriedade

Type: Cadeia de caracteres
The name of the primary attribute for an entity..

Comentários

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.

Segurança do Thread

Todos os membros estáticos (Shared in Visual Basic) desse tipo são protegidos por thread. Não há nenhum garantia de que os membros de instância sejam protegidos por thread.

Plataformas

Plataformas de desenvolvimento

Windows Vista, Windows Server 2003 e

Plataformas de destino

Windows Vista,Windows XP

Consulte também

Referência

Classe EntityMetadata
Membros de EntityMetadata
Namespace Microsoft.Xrm.Sdk.Metadata

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