Freigeben über


ArmReservationsModelFactory.ExchangeResult Method

Definition

Initializes a new instance of ExchangeResult.

public static Azure.ResourceManager.Reservations.Models.ExchangeResult ExchangeResult (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.ResourceManager.Reservations.Models.ExchangeOperationResultStatus? status = default, Azure.ResourceManager.Reservations.Models.ExchangeResultProperties properties = default, Azure.ResourceManager.Reservations.Models.OperationResultError error = default);
static member ExchangeResult : Azure.Core.ResourceIdentifier * string * Nullable<Azure.ResourceManager.Reservations.Models.ExchangeOperationResultStatus> * Azure.ResourceManager.Reservations.Models.ExchangeResultProperties * Azure.ResourceManager.Reservations.Models.OperationResultError -> Azure.ResourceManager.Reservations.Models.ExchangeResult
Public Shared Function ExchangeResult (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional status As Nullable(Of ExchangeOperationResultStatus) = Nothing, Optional properties As ExchangeResultProperties = Nothing, Optional error As OperationResultError = Nothing) As ExchangeResult

Parameters

id
ResourceIdentifier

It should match what is used to GET the operation result.

name
String

It must match the last segment of the id field, and will typically be a GUID / system generated value.

status
Nullable<ExchangeOperationResultStatus>

Status of the operation.

properties
ExchangeResultProperties

Exchange response properties.

error
OperationResultError

Required if status == failed or status == canceled.

Returns

A new ExchangeResult instance for mocking.

Applies to