Delen via


ConsumptionExtensions.GetReservationOrderConsumptionResource Method

Definition

Gets an object representing a ReservationOrderConsumptionResource along with the instance operations that can be performed on it but with no data. You can use Azure.ResourceManager.Consumption.ReservationOrderConsumptionResource.CreateResourceIdentifier(System.String) to create a ReservationOrderConsumptionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetReservationOrderConsumptionResource(ResourceIdentifier) instead.

public static Azure.ResourceManager.Consumption.ReservationOrderConsumptionResource GetReservationOrderConsumptionResource (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id);
static member GetReservationOrderConsumptionResource : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.Consumption.ReservationOrderConsumptionResource
<Extension()>
Public Function GetReservationOrderConsumptionResource (client As ArmClient, id As ResourceIdentifier) As ReservationOrderConsumptionResource

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

id
ResourceIdentifier

The resource ID of the resource to get.

Returns

Returns a ReservationOrderConsumptionResource object.

Exceptions

client is null.

Applies to