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 | |
---|---|---|
DateTimeBehavior() | Initializes a new instance of the DateTimeBehavior class. |
Properties
Name | Description | |
---|---|---|
ExtensionData | (Inherited from ConstantsBase<T>.) |
|
Value | (Inherited from ConstantsBase<T>.) |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Overrides Object.Equals(Object).) |
|
GetHashCode() | (Overrides Object.GetHashCode().) |
|
GetType() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
DateOnly | Stores the date value with the time value as 12:00 AM (00:00:00) without the time zone information. Value = 2. |
|
TimeZoneIndependent | Stores the date and time values without the time zone information. Value = 3. |
|
UserLocal | Stores the date and time value with current user local time zone information. Value = 1. |
Operators
Name | Description | |
---|---|---|
Equality(DateTimeBehavior, DateTimeBehavior) | ||
Implicit(String to DateTimeBehavior) | ||
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