Jaa


EntityMetadata.PrimaryImageAttribute Property

 

Applies To: Dynamics CRM 2015

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

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

Syntax

[DataMemberAttribute(Order = 60)]
public string PrimaryImageAttribute { get; internal set; }
public:
[DataMemberAttribute(Order = 60)]
property String^ PrimaryImageAttribute {
    String^ get();
    internal: void set(String^ value);
}
[<DataMemberAttribute(Order = 60)>]
member PrimaryImageAttribute : string with get, internal set
<DataMemberAttribute(Order := 60)>
Public Property PrimaryImageAttribute As String
    Get
    Friend Set
End Property

Property Value

Type: System.String

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

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.

See Also

EntityMetadata Class
Microsoft.Xrm.Sdk.Metadata Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright