Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Se aplica a: CRM 2015 on-prem, CRM Online
Gets the name of the primary attribute for an entity.
Espacio de nombres: Microsoft.Xrm.Sdk.Metadata
Ensamblado: Microsoft.Xrm.Sdk (en Microsoft.Xrm.Sdk.dll)
Sintaxis
'Declaración
<DataMemberAttribute> _
Public Property PrimaryNameAttribute As String
[DataMemberAttribute]
public string PrimaryNameAttribute { get; }
Valor de propiedad
Type: Cadena
The name of the primary attribute for an entity..
Comentarios
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.
Seguridad de hilo
Los miembros estáticos públicos (Shared en Visual Basic) de este tipo son seguros para el hilo. No se garantiza que los miembros de instancia sean seguros para el hilo.
Plataformas
Plataformas de desarrollo
Windows Vista, Windows Server 2003 y
Plataformas de destino
Windows Vista,Windows XP
Vea también
Referencia
Clase de EntityMetadata
Miembros de EntityMetadata
Espacio de nombres de Microsoft.Xrm.Sdk.Metadata
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.