你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ServiceError Class

Definition

ASR error model.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202401.ServiceErrorTypeConverter))]
public class ServiceError : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202401.IServiceError
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202401.ServiceErrorTypeConverter))>]
type ServiceError = class
    interface IServiceError
    interface IJsonSerializable
Public Class ServiceError
Implements IServiceError
Inheritance
ServiceError
Attributes
Implements

Constructors

ServiceError()

Creates an new ServiceError instance.

Properties

ActivityId

Activity Id.

Code

Error code.

Message

Error message.

PossibleCaus

Possible causes of error.

RecommendedAction

Recommended action to resolve error.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ServiceError.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ServiceError.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202401.IServiceError.

FromJsonString(String)

Creates a new instance of ServiceError, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of ServiceError into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to