XrmTimeSpan.CreateXrmTimeSpan Method (Int32, Int32, Int32, Int32, Int32)

 

Updated: November 29, 2016

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

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

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

public static XrmTimeSpan CreateXrmTimeSpan(
	int years,
	int months,
	int days,
	int hours,
	int minutes
)

Parameters

years
Type: System.Int32

Type: Int32. Specifies the years for the time span.

months
Type: System.Int32

Type: Int32. Specifies the months for the time span.

days
Type: System.Int32

Type: Int32. Specifies the days for the time span.

hours
Type: System.Int32

Type: Int32. Specifies the hours for the time span.

minutes
Type: System.Int32

Type: Int32. Specifies the minutes for the time span.

Return Value

Type: Microsoft.Xrm.Sdk.Workflow.XrmTimeSpan

Type: XrmTimeSpan
The instance of a XrmTimeSpan class where the years, months, days, hours, and minutes are set.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Show: