Compartir a través de


XrmTimeSpan.CreateXrmTimeSpan Method

Definition

Creates an instance of a XrmTimeSpan class.

Overloads

CreateXrmTimeSpan(XrmTimeSpan)

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

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.

public:
 static Microsoft::Xrm::Sdk::Workflow::XrmTimeSpan CreateXrmTimeSpan(Microsoft::Xrm::Sdk::Workflow::XrmTimeSpan cts);
public static Microsoft.Xrm.Sdk.Workflow.XrmTimeSpan CreateXrmTimeSpan (Microsoft.Xrm.Sdk.Workflow.XrmTimeSpan cts);
static member CreateXrmTimeSpan : Microsoft.Xrm.Sdk.Workflow.XrmTimeSpan -> Microsoft.Xrm.Sdk.Workflow.XrmTimeSpan
Public Shared Function CreateXrmTimeSpan (cts As XrmTimeSpan) As XrmTimeSpan

Parameters

cts
XrmTimeSpan

Specifies the time span.

Returns

The instance of a XrmTimeSpan class where the time span members are set.

Applies to

CreateXrmTimeSpan(Int32, Int32, Int32)

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

public:
 static Microsoft::Xrm::Sdk::Workflow::XrmTimeSpan CreateXrmTimeSpan(int days, int hours, int minutes);
public static Microsoft.Xrm.Sdk.Workflow.XrmTimeSpan CreateXrmTimeSpan (int days, int hours, int minutes);
static member CreateXrmTimeSpan : int * int * int -> Microsoft.Xrm.Sdk.Workflow.XrmTimeSpan
Public Shared Function CreateXrmTimeSpan (days As Integer, hours As Integer, minutes As Integer) As XrmTimeSpan

Parameters

days
Int32

Specifies the days for the time span.

hours
Int32

Specifies the hours for the time span.

minutes
Int32

Specifies the minutes for the time span.

Returns

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

Applies to

CreateXrmTimeSpan(Int32, Int32, Int32, Int32, Int32)

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

public:
 static Microsoft::Xrm::Sdk::Workflow::XrmTimeSpan CreateXrmTimeSpan(int years, int months, int days, int hours, int minutes);
public static Microsoft.Xrm.Sdk.Workflow.XrmTimeSpan CreateXrmTimeSpan (int years, int months, int days, int hours, int minutes);
static member CreateXrmTimeSpan : int * int * int * int * int -> Microsoft.Xrm.Sdk.Workflow.XrmTimeSpan
Public Shared Function CreateXrmTimeSpan (years As Integer, months As Integer, days As Integer, hours As Integer, minutes As Integer) As XrmTimeSpan

Parameters

years
Int32

Specifies the years for the time span.

months
Int32

Specifies the months for the time span.

days
Int32

Specifies the days for the time span.

hours
Int32

Specifies the hours for the time span.

minutes
Int32

Specifies the minutes for the time span.

Returns

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

Applies to