Κοινή χρήση μέσω


DateTimeBehavior Class

 

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

Specifies the behavior of a DateTimeAttributeMetadata attribute using the DateTimeBehavior property.

For the Web API the corresponding type is DateTimeBehavior 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.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 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
Behavior and format of the date and time attribute

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright