Condividi tramite


DesktopVirtualizationExtensions.GetUserSessionResource Method

Definition

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

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

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

id
ResourceIdentifier

The resource ID of the resource to get.

Returns

Returns a UserSessionResource object.

Exceptions

client is null.

Applies to