Teilen über


StringFormatName Class

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

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

For the Web API the corresponding type is StringFormatName ComplexType.

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

Inheritance Hierarchy

System.Object
  Microsoft.Xrm.Sdk.Metadata.ConstantsBase<T>
    Microsoft.Xrm.Sdk.Metadata.StringFormatName

Syntax

[DataContractAttribute(Name = "StringFormatName", Namespace = "https://schemas.microsoft.com/xrm/2013/Metadata")]
public sealed class StringFormatName : ConstantsBase<string>
<DataContractAttribute(Name := "StringFormatName", Namespace := "https://schemas.microsoft.com/xrm/2013/Metadata")>
Public NotInheritable Class StringFormatName
    Inherits ConstantsBase(Of String)

Constructors

Name Description
System_CAPS_pubmethod StringFormatName()

Initializes a new instance of the StringFormatName class.

Properties

Name Description
System_CAPS_pubproperty ExtensionData

(Inherited from ConstantsBase<T>.)

System_CAPS_pubproperty Value

(Inherited from ConstantsBase<T>.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

Determines whether two instances are equal.(Overrides Object.Equals(Object).)

System_CAPS_pubmethod GetHashCode()

Returns a hash code value for this type.(Overrides Object.GetHashCode().)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Fields

Name Description
System_CAPS_pubfieldSystem_CAPS_static Email

Specifies to display the StringAttributeMetadata as an email address.

System_CAPS_pubfieldSystem_CAPS_static Phone

Specifies to display the StringAttributeMetadata as an phone number.

System_CAPS_pubfieldSystem_CAPS_static PhoneticGuide

Specifies to display the StringAttributeMetadata as an phonetic guide.

System_CAPS_pubfieldSystem_CAPS_static Text

Specifies to display the StringAttributeMetadata as text.

System_CAPS_pubfieldSystem_CAPS_static TextArea

Specifies to display the StringAttributeMetadata as a text area.

System_CAPS_pubfieldSystem_CAPS_static TickerSymbol

Specifies to display the StringAttributeMetadata as a ticker symbol.

System_CAPS_pubfieldSystem_CAPS_static Url

Specifies to display the StringAttributeMetadata as a URL.

System_CAPS_pubfieldSystem_CAPS_static VersionNumber

Specifies to display the StringAttributeMetadata as a version number.

Operators

Name Description
System_CAPS_puboperatorSystem_CAPS_static Equality(StringFormatName, StringFormatName)

Indicates whether two StringFormatName instances are the same.

System_CAPS_puboperatorSystem_CAPS_static Implicit(String to StringFormatName)

Converts a string into a StringFormatName

System_CAPS_puboperatorSystem_CAPS_static Inequality(StringFormatName, StringFormatName)

Indicates whether two StringFormatName instances are different.

Remarks

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

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Xrm.Sdk.Metadata Namespace

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright