Partekatu honen bidez:


Propiedad EntityMetadata.PrimaryImageAttribute

Se aplica a: CRM 2015 on-prem, CRM Online

Gets the name of the primary image attribute for an entity.

Espacio de nombres: Microsoft.Xrm.Sdk.Metadata
Ensamblado: Microsoft.Xrm.Sdk (en Microsoft.Xrm.Sdk.dll)

Sintaxis

'Declaración
<DataMemberAttribute(Order:=60)> _
Public Property PrimaryImageAttribute As String
[DataMemberAttribute(Order=60)] 
public string PrimaryImageAttribute { get; }

Valor de propiedad

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

Comentarios

When an entity contains a ImageAttributeMetadata attribute this value will be the name of the attribute containing the image used in the application. Each entity can have only one image attribute and the logical name of that attribute is always entityimage. This property has been added to prepare for a future release in which entities may support multiple image attributes and there may be need to change which image is used as the primary image for the entity.

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.