Partager via


Propriété EntityMetadata.PrimaryImageAttribute

S'applique à: CRM 2015 on-prem, CRM Online

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

Espace de noms: Microsoft.Xrm.Sdk.Metadata
Assembly: Microsoft.Xrm.Sdk (dans Microsoft.Xrm.Sdk.dll)

Syntaxe

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

Valeur de propriété

Type: Chaîne
The name of the primary image attribute for an entity.

Remarques

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.

Cohérence de thread

Tous les membres statiques publics (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres d'instance ne sont pas garantis thread-safe.

Plateformes

Plateformes de développement

Windows Vista, Windows Server 2003 et

Plateformes cibles

Windows Vista,Windows XP

Voir aussi

Référence

Classe EntityMetadata
Membres EntityMetadata
Espace de noms Microsoft.Xrm.Sdk.Metadata

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