你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ComputeBatchModelFactory.InstanceViewStatus Method
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.
Initializes a new instance of InstanceViewStatus.
public static Azure.Compute.Batch.InstanceViewStatus InstanceViewStatus (string code = default, string displayStatus = default, Azure.Compute.Batch.StatusLevelTypes? level = default, string message = default, DateTimeOffset? time = default);
static member InstanceViewStatus : string * string * Nullable<Azure.Compute.Batch.StatusLevelTypes> * string * Nullable<DateTimeOffset> -> Azure.Compute.Batch.InstanceViewStatus
Public Shared Function InstanceViewStatus (Optional code As String = Nothing, Optional displayStatus As String = Nothing, Optional level As Nullable(Of StatusLevelTypes) = Nothing, Optional message As String = Nothing, Optional time As Nullable(Of DateTimeOffset) = Nothing) As InstanceViewStatus
Parameters
- code
- String
The status code.
- displayStatus
- String
The localized label for the status.
- level
- Nullable<StatusLevelTypes>
Level code.
- message
- String
The detailed status message.
- time
- Nullable<DateTimeOffset>
The time of the status.
Returns
A new InstanceViewStatus instance for mocking.