ArmReservationsModelFactory.ExchangeResult Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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 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
Azure SDK for .NET