Condividi tramite


CosmosDBExtensions.GetCosmosDBLocationResource Method

Definition

Gets an object representing a CosmosDBLocationResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, AzureLocation) to create a CosmosDBLocationResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetCosmosDBLocationResource(ResourceIdentifier) instead.

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

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

id
ResourceIdentifier

The resource ID of the resource to get.

Returns

Returns a CosmosDBLocationResource object.

Exceptions

client is null.

Applies to