次の方法で共有


ArmComputeModelFactory.VirtualMachineRunCommandInstanceView Method

Definition

Initializes a new instance of VirtualMachineRunCommandInstanceView.

public static Azure.ResourceManager.Compute.Models.VirtualMachineRunCommandInstanceView VirtualMachineRunCommandInstanceView (Azure.ResourceManager.Compute.Models.ExecutionState? executionState = default, string executionMessage = default, int? exitCode = default, string output = default, string error = default, DateTimeOffset? startOn = default, DateTimeOffset? endOn = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.InstanceViewStatus> statuses = default);
static member VirtualMachineRunCommandInstanceView : Nullable<Azure.ResourceManager.Compute.Models.ExecutionState> * string * Nullable<int> * string * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * seq<Azure.ResourceManager.Compute.Models.InstanceViewStatus> -> Azure.ResourceManager.Compute.Models.VirtualMachineRunCommandInstanceView
Public Shared Function VirtualMachineRunCommandInstanceView (Optional executionState As Nullable(Of ExecutionState) = Nothing, Optional executionMessage As String = Nothing, Optional exitCode As Nullable(Of Integer) = Nothing, Optional output As String = Nothing, Optional error As String = Nothing, Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional endOn As Nullable(Of DateTimeOffset) = Nothing, Optional statuses As IEnumerable(Of InstanceViewStatus) = Nothing) As VirtualMachineRunCommandInstanceView

Parameters

executionState
Nullable<ExecutionState>

Script execution status.

executionMessage
String

Communicate script configuration errors or execution messages.

exitCode
Nullable<Int32>

Exit code returned from script execution.

output
String

Script output stream.

error
String

Script error stream.

startOn
Nullable<DateTimeOffset>

Script start time.

endOn
Nullable<DateTimeOffset>

Script end time.

statuses
IEnumerable<InstanceViewStatus>

The resource status information.

Returns

A new VirtualMachineRunCommandInstanceView instance for mocking.

Applies to