다음을 통해 공유


DateTimeBehaviorConversionRule Class

 

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

Represents a conversion rule for converting date and time value from UTC to DateOnly in the database.

Namespace:   Microsoft.Xrm.Sdk
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Inheritance Hierarchy

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

Syntax

public sealed class DateTimeBehaviorConversionRule : ConstantsBase<string>
Public NotInheritable Class DateTimeBehaviorConversionRule
    Inherits ConstantsBase(Of String)

Constructors

Name Description
System_CAPS_pubmethod DateTimeBehaviorConversionRule()

Initializes a new instance of the DateTimeBehaviorConversionRule 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 the specified instance of DateTimeBehaviorConversionRule is equal to the current instance.(Overrides Object.Equals(Object).)

System_CAPS_pubmethod GetHashCode()

Returns a hash code for this instance.(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 CreatedByTimeZone

Converts UTC value to a DateOnly value that the user who created the record would see in the UI.

System_CAPS_pubfieldSystem_CAPS_static LastUpdatedByTimeZone

Converts UTC value to a DateOnly value that the user who last updated the record would see in the UI.

System_CAPS_pubfieldSystem_CAPS_static OwnerTimeZone

Converts UTC value to a DateOnly value that the user who owns the record would see in the UI.

System_CAPS_pubfieldSystem_CAPS_static SpecificTimeZone

Converts UTC value to a DateOnly value as per the time zone code specified in the ConvertDateAndTimeBehaviorRequest.TimeZoneCode parameter.

Operators

Name Description
System_CAPS_puboperatorSystem_CAPS_static Equality(DateTimeBehaviorConversionRule, DateTimeBehaviorConversionRule)

Indicates whether two DateTimeBehaviorConversionRule instances are equal.

System_CAPS_puboperatorSystem_CAPS_static Implicit(String to DateTimeBehaviorConversionRule)

Converts a string into a DateTimeBehaviorConversionRule

System_CAPS_puboperatorSystem_CAPS_static Inequality(DateTimeBehaviorConversionRule, DateTimeBehaviorConversionRule)

Indicates whether two DateTimeBehaviorConversionRule instances are not equal.

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 Namespace
Behavior and format of the date and time attribute
Sample: Convert date and time behavior

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright