Compartilhar via


DateTimeBehavior Class

 

Applies To: Dynamics CRM 2015

Specifies the behavior of a DateTimeAttributeMetadata attribute using the DateTimeBehavior 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.DateTimeBehavior

Syntax

[DataContractAttribute(Name = "DateTimeBehavior", Namespace = "https://schemas.microsoft.com/xrm/7.1/Metadata")]
public sealed class DateTimeBehavior : ConstantsBase<string>
[DataContractAttribute(Name = "DateTimeBehavior", Namespace = "https://schemas.microsoft.com/xrm/7.1/Metadata")]
public ref class DateTimeBehavior sealed : ConstantsBase<String^>
[<Sealed>]
[<DataContractAttribute(Name = "DateTimeBehavior", Namespace = "https://schemas.microsoft.com/xrm/7.1/Metadata")>]
type DateTimeBehavior = 
    class
        inherit ConstantsBase<string>
    end
<DataContractAttribute(Name := "DateTimeBehavior", Namespace := "https://schemas.microsoft.com/xrm/7.1/Metadata")>
Public NotInheritable Class DateTimeBehavior
    Inherits ConstantsBase(Of String)

Constructors

Name Description
System_CAPS_pubmethod DateTimeBehavior()

Initializes a new instance of the DateTimeBehavior 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)

(Overrides Object.Equals(Object).)

System_CAPS_pubmethod GetHashCode()

(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 DateOnly

Stores the date value with the time value as 12:00 AM (00:00:00) without the time zone information. Value = 2.

System_CAPS_pubfieldSystem_CAPS_static TimeZoneIndependent

Stores the date and time values without the time zone information. Value = 3.

System_CAPS_pubfieldSystem_CAPS_static UserLocal

Stores the date and time value with current user local time zone information. Value = 1.

Operators

Name Description
System_CAPS_puboperatorSystem_CAPS_static Equality(DateTimeBehavior, DateTimeBehavior)

System_CAPS_puboperatorSystem_CAPS_static Implicit(String to DateTimeBehavior)

System_CAPS_puboperatorSystem_CAPS_static Inequality(DateTimeBehavior, DateTimeBehavior)

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
89969adc-8577-424c-bfcc-7f65c5d4bd19#BKMK_DateTimeAttrbuteMetadata

Return to top

© 2016 Microsoft. All rights reserved. Copyright