Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

EntityMetadata.PrimaryImageAttribute Property

Definition

Namespace:
Microsoft.Xrm.Sdk.Metadata
Assembly:
Microsoft.Xrm.Sdk.dll
Package:
Microsoft.PowerPlatform.Dataverse.Client v1.2.10

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

public:
 property System::String ^ PrimaryImageAttribute { System::String ^ get(); };
[System.Runtime.Serialization.DataMember(Order=60)]
public string PrimaryImageAttribute { get; }
[<System.Runtime.Serialization.DataMember(Order=60)>]
member this.PrimaryImageAttribute : string
Public ReadOnly Property PrimaryImageAttribute As String

Property Value

The name of the primary image attribute for an entity.

Attributes

Remarks

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.

Applies to