Partilhar via


ArmDeviceRegistryModelFactory.AssetStatusError Method

Definition

Initializes a new instance of AssetStatusError.

public static Azure.ResourceManager.DeviceRegistry.Models.AssetStatusError AssetStatusError (int? code = default, string message = default);
static member AssetStatusError : Nullable<int> * string -> Azure.ResourceManager.DeviceRegistry.Models.AssetStatusError
Public Shared Function AssetStatusError (Optional code As Nullable(Of Integer) = Nothing, Optional message As String = Nothing) As AssetStatusError

Parameters

code
Nullable<Int32>

Error code for classification of errors (ex: 400, 404, 500, etc.).

message
String

Human readable helpful error message to provide additional context for error (ex: “capability Id 'foo' does not exist”).

Returns

A new AssetStatusError instance for mocking.

Applies to