XrmTimeSpan Structure
Applies To: Dynamics CRM 2015
Represents a time interval.
Namespace: Microsoft.Xrm.Sdk.Workflow
Assembly: Microsoft.Xrm.Sdk.Workflow (in Microsoft.Xrm.Sdk.Workflow.dll)
Syntax
[SerializableAttribute]
public struct XrmTimeSpan
[SerializableAttribute]
public value struct XrmTimeSpan
[<Sealed>]
[<SerializableAttribute>]
type XrmTimeSpan = struct end
<SerializableAttribute>
Public Structure XrmTimeSpan
Constructors
Name | Description | |
---|---|---|
XrmTimeSpan(Int32, Int32, Int32) | Initializes a new instance of the XrmTimeSpan class setting the days, hours and minutes. |
|
XrmTimeSpan(Int32, Int32, Int32, Int32, Int32) | Initializes a new instance of the XrmTimeSpan class setting the years, months, days, hours and minutes. |
|
XrmTimeSpan(TimeSpan) | Initializes a new instance of the CrmTimeSpan class setting the time span. |
Properties
Name | Description | |
---|---|---|
Days | Gets the number of whole days represented by the current XrmTimeSpan structure. |
|
Hours | Gets the number of whole hours represented by the current XrmTimeSpan structure. |
|
Minutes | Gets the number of whole minutes represented by the current XrmTimeSpan structure. |
|
Months | Gets the number of whole months represented by the current XrmTimeSpan structure. |
|
Years | Gets the number of whole years represented by the current XrmTimeSpan structure. |
Methods
Name | Description | |
---|---|---|
Add(DateTime) | Adds the specified date/time value to this instance. |
|
CreateXrmTimeSpan(Int32, Int32, Int32) | Creates an instance of a XrmTimeSpan class setting the days, hours and minutes. |
|
CreateXrmTimeSpan(Int32, Int32, Int32, Int32, Int32) | Creates an instance of a XrmTimeSpan class setting the years, months, days, hours and minutes. |
|
CreateXrmTimeSpan(XrmTimeSpan) | Creates an instance of a XrmTimeSpan class setting the time span members. |
|
Equals(Object) | Returns a value indicating whether this instance is equal to a specified object.(Overrides ValueType.Equals(Object).) |
|
Equals(XrmTimeSpan) | Returns a value indicating whether this instance is equal to a specified XrmTimeSpan object. |
|
GetHashCode() | Returns a hash code for this instance.(Overrides ValueType.GetHashCode().) |
|
GetType() | (Inherited from Object.) |
|
Subtract(DateTime) | Subtracts the specified XrmTimeSpan from this instance. |
|
ToString() | (Inherited from ValueType.) |
Fields
Name | Description | |
---|---|---|
Zero | Represents the zero XrmTimeSpan value. This field is read-only. |
Operators
Name | Description | |
---|---|---|
Equality(XrmTimeSpan, XrmTimeSpan) | Indicates whether two XrmTimeSpan instances are equal. |
|
Inequality(XrmTimeSpan, XrmTimeSpan) | Indicates whether two XrmTimeSpan instances are not equal. |
Remarks
This is similar to System.TimeSpan but with added support for month and year.
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.Workflow Namespace
Return to top
© 2016 Microsoft. All rights reserved. Copyright