Share via


ErrorContract Class

Definition

Describes the format of Error response.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Models.Api20210801.ErrorContractTypeConverter))]
public class ErrorContract : Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Models.Api20210801.IErrorContract
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Models.Api20210801.ErrorContractTypeConverter))>]
type ErrorContract = class
    interface IErrorContract
    interface IJsonSerializable
Public Class ErrorContract
Implements IErrorContract
Inheritance
ErrorContract
Attributes
Implements

Constructors

ErrorContract()

Creates an new ErrorContract instance.

Properties

AdditionalInfo

The error additional info.

Code

The error code.

Detail

The error details.

Message

The error message.

Target

The error target.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ErrorContract.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ErrorContract.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Models.Api20210801.IErrorContract.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of ErrorContract into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to