XrmTimeSpan Structure

 

Updated: November 29, 2016

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

Represents a time interval.

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

[SerializableAttribute]
public struct XrmTimeSpan

NameDescription
System_CAPS_pubmethodXrmTimeSpan(Int32, Int32, Int32)

Initializes a new instance of the XrmTimeSpan class setting the days, hours and minutes.

System_CAPS_pubmethodXrmTimeSpan(Int32, Int32, Int32, Int32, Int32)

Initializes a new instance of the XrmTimeSpan class setting the years, months, days, hours and minutes.

System_CAPS_pubmethodXrmTimeSpan(TimeSpan)

Initializes a new instance of the CrmTimeSpan class setting the time span.

NameDescription
System_CAPS_pubpropertyDays

Gets the number of whole days represented by the current XrmTimeSpan structure.

System_CAPS_pubpropertyHours

Gets the number of whole hours represented by the current XrmTimeSpan structure.

System_CAPS_pubpropertyMinutes

Gets the number of whole minutes represented by the current XrmTimeSpan structure.

System_CAPS_pubpropertyMonths

Gets the number of whole months represented by the current XrmTimeSpan structure.

System_CAPS_pubpropertyYears

Gets the number of whole years represented by the current XrmTimeSpan structure.

NameDescription
System_CAPS_pubmethodAdd(DateTime)

Adds the specified date/time value to this instance.

System_CAPS_pubmethodSystem_CAPS_staticCreateXrmTimeSpan(Int32, Int32, Int32)

Creates an instance of a XrmTimeSpan class setting the days, hours and minutes.

System_CAPS_pubmethodSystem_CAPS_staticCreateXrmTimeSpan(Int32, Int32, Int32, Int32, Int32)

Creates an instance of a XrmTimeSpan class setting the years, months, days, hours and minutes.

System_CAPS_pubmethodSystem_CAPS_staticCreateXrmTimeSpan(XrmTimeSpan)

Creates an instance of a XrmTimeSpan class setting the time span members.

System_CAPS_pubmethodEquals(Object)

Returns a value indicating whether this instance is equal to a specified object.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodEquals(XrmTimeSpan)

Returns a value indicating whether this instance is equal to a specified XrmTimeSpan object.

System_CAPS_pubmethodGetHashCode()

Returns a hash code for this instance.(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodSubtract(DateTime)

Subtracts the specified XrmTimeSpan from this instance.

System_CAPS_pubmethodToString()

(Inherited from ValueType.)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticZero

Represents the zero XrmTimeSpan value. This field is read-only.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(XrmTimeSpan, XrmTimeSpan)

Indicates whether two XrmTimeSpan instances are equal.

System_CAPS_puboperatorSystem_CAPS_staticInequality(XrmTimeSpan, XrmTimeSpan)

Indicates whether two XrmTimeSpan instances are not equal.

This is similar to System.TimeSpan but with added support for month and year.

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: