IWsEndUserGetScheduledOperations Method
|
The aim of the method is to output a list of date occurrences of active scheduled operations of a user between a startdate and enddate. An optional scheduleoperationID can be specified in input
Retrieve operations including scheduled between the two dates. By the method GetScheduledOperations () of Aruba WsEndUser
you can retrieve all scheduled operations between 2 dates and belonging to the authenticated user.
Namespace:
Aruba.Cloud.WsEndUser
Assembly:
Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax[OperationContractAttribute]
WsResult<ScheduledOperation[]> GetScheduledOperations(
GetScheduledOperationRequest operationRequest
)
<OperationContractAttribute>
Function GetScheduledOperations (
operationRequest As GetScheduledOperationRequest
) As WsResult(Of ScheduledOperation())
[OperationContractAttribute]
WsResult<array<ScheduledOperation^>^>^ GetScheduledOperations(
GetScheduledOperationRequest^ operationRequest
)
[<OperationContractAttribute>]
abstract GetScheduledOperations :
operationRequest : GetScheduledOperationRequest -> WsResult<ScheduledOperation[]>
function GetScheduledOperations(
operationRequest : GetScheduledOperationRequest
) : WsResult<ScheduledOperation[]>
Parameters
- operationRequest
- Type: Aruba.Cloud.Provisioning.EntitiesGetScheduledOperationRequest
- StartDate - System.DateTime that represents the given lower limit of the search.
- EndDate - System.DateTime that represents the date upper limit of the search.
Return Value
Type:
WsResultScheduledOperation
The method returns an Array of ScheduledOperation containing information relating to the operations scheduled recovered.
Examples
Below is an example of a method call GetScheduledOperations() to Aruba WsEndUser:
private ScheduledOperation[] GetScheduledOperations()
{
using (WsEndUserClient client = this.WsEndUserClient)
{
WsResult result = client.GetScheduledOperations(DateTime.Now, DateTime.Now.AddDays(46));
if (result.Success)
return result.Value;
this.LogError("GetScheduledOperations", new Exception(result.ResultMessage));
throw new CodedException(result.ResultCode, result.ResultMessage);
}
}
See Also