Share via


VirtualDesktopCollection Class

Definition

A class representing a collection of VirtualDesktopResource and their operations. Each VirtualDesktopResource in the collection will belong to the same instance of VirtualApplicationGroupResource. To get a VirtualDesktopCollection instance call the GetVirtualDesktops method from an instance of VirtualApplicationGroupResource.

public class VirtualDesktopCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.DesktopVirtualization.VirtualDesktopResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DesktopVirtualization.VirtualDesktopResource>
type VirtualDesktopCollection = class
    inherit ArmCollection
    interface seq<VirtualDesktopResource>
    interface IEnumerable
    interface IAsyncEnumerable<VirtualDesktopResource>
Public Class VirtualDesktopCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of VirtualDesktopResource), IEnumerable(Of VirtualDesktopResource)
Inheritance
VirtualDesktopCollection
Implements

Constructors

VirtualDesktopCollection()

Initializes a new instance of the VirtualDesktopCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}
  • Operation Id: Desktops_Get
  • Default Api Version: 2024-04-03
  • Resource: VirtualDesktopResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}
  • Operation Id: Desktops_Get
  • Default Api Version: 2024-04-03
  • Resource: VirtualDesktopResource
Get(String, CancellationToken)

Get a desktop.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}
  • Operation Id: Desktops_Get
  • Default Api Version: 2024-04-03
  • Resource: VirtualDesktopResource
GetAll(Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, CancellationToken)

List desktops.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops
  • Operation Id: Desktops_List
  • Default Api Version: 2024-04-03
  • Resource: VirtualDesktopResource
GetAllAsync(Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, CancellationToken)

List desktops.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops
  • Operation Id: Desktops_List
  • Default Api Version: 2024-04-03
  • Resource: VirtualDesktopResource
GetAsync(String, CancellationToken)

Get a desktop.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}
  • Operation Id: Desktops_Get
  • Default Api Version: 2024-04-03
  • Resource: VirtualDesktopResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}
  • Operation Id: Desktops_Get
  • Default Api Version: 2024-04-03
  • Resource: VirtualDesktopResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}
  • Operation Id: Desktops_Get
  • Default Api Version: 2024-04-03
  • Resource: VirtualDesktopResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<VirtualDesktopResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<VirtualDesktopResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to