DateTimeBehavior Class

 

Updated: November 29, 2016

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)

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

[DataContractAttribute(Name = "DateTimeBehavior", Namespace = "http://schemas.microsoft.com/xrm/7.1/Metadata")]
public sealed class DateTimeBehavior : ConstantsBase<string>

NameDescription
System_CAPS_pubmethodDateTimeBehavior()

Initializes a new instance of the DateTimeBehavior class.

NameDescription
System_CAPS_pubpropertyExtensionData

(Inherited from ConstantsBase<T>.)

System_CAPS_pubpropertyValue

(Inherited from ConstantsBase<T>.)

NameDescription
System_CAPS_pubmethodEquals(Object)
System_CAPS_pubmethodGetHashCode()
System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticDateOnly

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_staticTimeZoneIndependent

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

System_CAPS_pubfieldSystem_CAPS_staticUserLocal

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

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

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Community Additions

ADD
Show: