Споделяне чрез


StringAttributeMetadata.Format Property

Definition

Gets or sets the format for the string

public:
 property Nullable<Microsoft::Xrm::Sdk::Metadata::StringFormat> Format { Nullable<Microsoft::Xrm::Sdk::Metadata::StringFormat> get(); void set(Nullable<Microsoft::Xrm::Sdk::Metadata::StringFormat> value); };
[System.Runtime.Serialization.DataMember]
public Microsoft.Xrm.Sdk.Metadata.StringFormat? Format { get; set; }
[<System.Runtime.Serialization.DataMember>]
member this.Format : Nullable<Microsoft.Xrm.Sdk.Metadata.StringFormat> with get, set
Public Property Format As Nullable(Of StringFormat)

Property Value

The format of the string attribute.

Attributes

Remarks

If this property is not assigned a value, and FormatName is also not assigned a value, it defaults to Text.

Use FormatName instead of this property to set the format. The StringFormat enumeration is deprecated. If both properties are set the FormatName value will be used.

Applies to