StringFormatName Class

Definition

Specifies the format of a StringAttributeMetadata attribute using the FormatName property.

For the Web API the corresponding type is StringFormatName ComplexType.

public ref class StringFormatName sealed : Microsoft::Xrm::Sdk::Metadata::ConstantsBase<System::String ^>
[System.Runtime.Serialization.DataContract(Name="StringFormatName", Namespace="http://schemas.microsoft.com/xrm/2013/Metadata")]
public sealed class StringFormatName : Microsoft.Xrm.Sdk.Metadata.ConstantsBase<string>
[<System.Runtime.Serialization.DataContract(Name="StringFormatName", Namespace="http://schemas.microsoft.com/xrm/2013/Metadata")>]
type StringFormatName = class
    inherit ConstantsBase<string>
Public NotInheritable Class StringFormatName
Inherits ConstantsBase(Of String)
Inheritance
StringFormatName
Attributes

Remarks

This class replaces the deprecated StringFormat enumeration used to set the StringAttributeMetadata.Format property.

Constructors

StringFormatName()

Initializes a new instance of the StringFormatName class.

Fields

Email

Specifies to display the StringAttributeMetadata as an email address.

Json
Phone

Specifies to display the StringAttributeMetadata as an phone number.

PhoneticGuide

Specifies to display the StringAttributeMetadata as an phonetic guide.

RichText

Sets the format name of a text field to allow the field to be displayed using the rich text control.

Text

Specifies to display the StringAttributeMetadata as text.

TextArea

Specifies to display the StringAttributeMetadata as a text area.

TickerSymbol

Specifies to display the StringAttributeMetadata as a ticker symbol.

Url

Specifies to display the StringAttributeMetadata as a URL.

VersionNumber

Specifies to display the StringAttributeMetadata as a version number.

Properties

ExtensionData (Inherited from ConstantsBase<T>)
Value (Inherited from ConstantsBase<T>)

Methods

Equals(Object)

Determines whether two instances are equal.

GetHashCode()

Returns a hash code value for this type.

ValueExistsInList(T)

Indicates whether a value exists in the list.

(Inherited from ConstantsBase<T>)

Operators

Equality(StringFormatName, StringFormatName)

Indicates whether two StringFormatName instances are the same.

Implicit(String to StringFormatName)

Converts a string into a StringFormatName

Inequality(StringFormatName, StringFormatName)

Indicates whether two StringFormatName instances are different.

Applies to