ASRTask 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
ASRTask() |
Initializes a new instance of the ASRTask class. |
ASRTask(String, String, Nullable<DateTime>, Nullable<DateTime>, IList<String>, String, String, String, String, TaskTypeDetails, GroupTaskDetails, IList<JobErrorDetails>) |
Initializes a new instance of the ASRTask class. |
ASRTask()
Initializes a new instance of the ASRTask class.
public ASRTask ();
Public Sub New ()
Applies to
ASRTask(String, String, Nullable<DateTime>, Nullable<DateTime>, IList<String>, String, String, String, String, TaskTypeDetails, GroupTaskDetails, IList<JobErrorDetails>)
Initializes a new instance of the ASRTask class.
public ASRTask (string taskId = default, string name = default, DateTime? startTime = default, DateTime? endTime = default, System.Collections.Generic.IList<string> allowedActions = default, string friendlyName = default, string state = default, string stateDescription = default, string taskType = default, Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.TaskTypeDetails customDetails = default, Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.GroupTaskDetails groupTaskCustomDetails = default, System.Collections.Generic.IList<Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.JobErrorDetails> errors = default);
new Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.ASRTask : string * string * Nullable<DateTime> * Nullable<DateTime> * System.Collections.Generic.IList<string> * string * string * string * string * Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.TaskTypeDetails * Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.GroupTaskDetails * System.Collections.Generic.IList<Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.JobErrorDetails> -> Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.ASRTask
Public Sub New (Optional taskId As String = Nothing, Optional name As String = Nothing, Optional startTime As Nullable(Of DateTime) = Nothing, Optional endTime As Nullable(Of DateTime) = Nothing, Optional allowedActions As IList(Of String) = Nothing, Optional friendlyName As String = Nothing, Optional state As String = Nothing, Optional stateDescription As String = Nothing, Optional taskType As String = Nothing, Optional customDetails As TaskTypeDetails = Nothing, Optional groupTaskCustomDetails As GroupTaskDetails = Nothing, Optional errors As IList(Of JobErrorDetails) = Nothing)
Parameters
- taskId
- String
The Id.
- name
- String
The unique Task name.
- friendlyName
- String
The name.
- state
- String
The State. It is one of these values - NotStarted, InProgress, Succeeded, Failed, Cancelled, Suspended or Other.
- stateDescription
- String
The description of the task state. For example - For Succeeded state, description can be Completed, PartiallySucceeded, CompletedWithInformation or Skipped.
- taskType
- String
The type of task. Details in CustomDetails property depend on this type.
- customDetails
- TaskTypeDetails
The custom task details based on the task type.
- groupTaskCustomDetails
- GroupTaskDetails
The custom task details based on the task type, if the task type is GroupTaskDetails or one of the types derived from it.
- errors
- IList<JobErrorDetails>
The task error details.