共用方式為


Entity.FormattedValues Property

Definition

Gets of sets the collection of formatted values for the entity attributes.

public:
 property Microsoft::Xrm::Sdk::FormattedValueCollection ^ FormattedValues { Microsoft::Xrm::Sdk::FormattedValueCollection ^ get(); };
[System.Runtime.Serialization.DataMember]
public Microsoft.Xrm.Sdk.FormattedValueCollection FormattedValues { get; set; }
[<System.Runtime.Serialization.DataMember>]
member this.FormattedValues : Microsoft.Xrm.Sdk.FormattedValueCollection with get, set
Public Property FormattedValues As FormattedValueCollection

Property Value

The collection of formatted values for the entity attributes.

Attributes

Examples

if (entity.FormattedValues.Contains(metadata.LogicalName))
actualValue = entity.FormattedValues[metadata.LogicalName];

Remarks

Entity formatted values are only available on a retrieve operation, not on an update operation.

Applies to

See also