共用方式為


ArmDeviceRegistryModelFactory.AssetStatus Method

Definition

Initializes a new instance of AssetStatus.

public static Azure.ResourceManager.DeviceRegistry.Models.AssetStatus AssetStatus (System.Collections.Generic.IEnumerable<Azure.ResourceManager.DeviceRegistry.Models.AssetStatusError> errors = default, int? version = default);
static member AssetStatus : seq<Azure.ResourceManager.DeviceRegistry.Models.AssetStatusError> * Nullable<int> -> Azure.ResourceManager.DeviceRegistry.Models.AssetStatus
Public Shared Function AssetStatus (Optional errors As IEnumerable(Of AssetStatusError) = Nothing, Optional version As Nullable(Of Integer) = Nothing) As AssetStatus

Parameters

errors
IEnumerable<AssetStatusError>

Array object to transfer and persist errors that originate from the Edge.

version
Nullable<Int32>

A read only incremental counter indicating the number of times the configuration has been modified from the perspective of the current actual (Edge) state of the Asset. Edge would be the only writer of this value and would sync back up to the cloud. In steady state, this should equal version.

Returns

A new AssetStatus instance for mocking.

Applies to