مشاركة عبر


StringFormatName Class

 

Applies To: Dynamics CRM 2015

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

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 ref class StringFormatName sealed : ConstantsBase<String^>
[<Sealed>]
[<DataContractAttribute(Name = "StringFormatName", Namespace = "https://schemas.microsoft.com/xrm/2013/Metadata")>]
type StringFormatName = 
    class
        inherit ConstantsBase<string>
    end
<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

© 2016 Microsoft. All rights reserved. Copyright