共用方式為


OperationResult Constructors

Definition

Overloads

OperationResult()

Initializes a new instance of the OperationResult class.

OperationResult(OperationStatus, String, String, Nullable<DateTime>, Nullable<DateTime>, Nullable<Double>, ErrorDetail)

Initializes a new instance of the OperationResult class.

OperationResult()

Initializes a new instance of the OperationResult class.

public OperationResult ();
Public Sub New ()

Applies to

OperationResult(OperationStatus, String, String, Nullable<DateTime>, Nullable<DateTime>, Nullable<Double>, ErrorDetail)

Initializes a new instance of the OperationResult class.

public OperationResult (Microsoft.Azure.Management.LabServices.Models.OperationStatus status, string id = default, string name = default, DateTime? startTime = default, DateTime? endTime = default, double? percentComplete = default, Microsoft.Azure.Management.LabServices.Models.ErrorDetail error = default);
new Microsoft.Azure.Management.LabServices.Models.OperationResult : Microsoft.Azure.Management.LabServices.Models.OperationStatus * string * string * Nullable<DateTime> * Nullable<DateTime> * Nullable<double> * Microsoft.Azure.Management.LabServices.Models.ErrorDetail -> Microsoft.Azure.Management.LabServices.Models.OperationResult
Public Sub New (status As OperationStatus, Optional id As String = Nothing, Optional name As String = Nothing, Optional startTime As Nullable(Of DateTime) = Nothing, Optional endTime As Nullable(Of DateTime) = Nothing, Optional percentComplete As Nullable(Of Double) = Nothing, Optional error As ErrorDetail = Nothing)

Parameters

status
OperationStatus

The operation status. Possible values include: 'NotStarted', 'InProgress', 'Succeeded', 'Failed', 'Canceled'

id
String

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name
String

The name of the resource

startTime
Nullable<DateTime>

Start time

endTime
Nullable<DateTime>

End time

percentComplete
Nullable<Double>

Percent completion

error
ErrorDetail

The error for a failure if the operation failed.

Applies to