OperationResult Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- error
- ErrorDetail
The error for a failure if the operation failed.