Share via


SessionHostCollection Class

Definition

A class representing a collection of SessionHostResource and their operations. Each SessionHostResource in the collection will belong to the same instance of HostPoolResource. To get a SessionHostCollection instance call the GetSessionHosts method from an instance of HostPoolResource.

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

Constructors

SessionHostCollection()

Initializes a new instance of the SessionHostCollection 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/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}
  • Operation Id: SessionHosts_Get
  • Default Api Version: 2024-04-03
  • Resource: SessionHostResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}
  • Operation Id: SessionHosts_Get
  • Default Api Version: 2024-04-03
  • Resource: SessionHostResource
Get(String, CancellationToken)

Get a session host.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}
  • Operation Id: SessionHosts_Get
  • Default Api Version: 2024-04-03
  • Resource: SessionHostResource
GetAll(Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, CancellationToken)

List sessionHosts.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts
  • Operation Id: SessionHosts_List
  • Default Api Version: 2024-04-03
  • Resource: SessionHostResource
GetAllAsync(Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, CancellationToken)

List sessionHosts.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts
  • Operation Id: SessionHosts_List
  • Default Api Version: 2024-04-03
  • Resource: SessionHostResource
GetAsync(String, CancellationToken)

Get a session host.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}
  • Operation Id: SessionHosts_Get
  • Default Api Version: 2024-04-03
  • Resource: SessionHostResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}
  • Operation Id: SessionHosts_Get
  • Default Api Version: 2024-04-03
  • Resource: SessionHostResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}
  • Operation Id: SessionHosts_Get
  • Default Api Version: 2024-04-03
  • Resource: SessionHostResource
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<SessionHostResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<SessionHostResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to