HostPoolResource.GetUserSessions Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetUserSessions(String, CancellationToken) |
List userSessions.
|
GetUserSessions(String, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, CancellationToken) |
List userSessions.
|
GetUserSessions(String, CancellationToken)
- Source:
- HostPoolResource.cs
List userSessions.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/userSessions
- Operation Id: UserSessions_ListByHostPool
public virtual Azure.Pageable<Azure.ResourceManager.DesktopVirtualization.UserSessionResource> GetUserSessions (string filter, System.Threading.CancellationToken cancellationToken);
abstract member GetUserSessions : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DesktopVirtualization.UserSessionResource>
override this.GetUserSessions : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DesktopVirtualization.UserSessionResource>
Public Overridable Function GetUserSessions (filter As String, cancellationToken As CancellationToken) As Pageable(Of UserSessionResource)
Parameters
- filter
- String
OData filter expression. Valid properties for filtering are userprincipalname and sessionstate.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of UserSessionResource that may take multiple service requests to iterate over.
Applies to
GetUserSessions(String, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, CancellationToken)
- Source:
- HostPoolResource.cs
List userSessions.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/userSessions
- Operation Id: UserSessions_ListByHostPool
- Default Api Version: 2024-04-03
- Resource: UserSessionResource
public virtual Azure.Pageable<Azure.ResourceManager.DesktopVirtualization.UserSessionResource> GetUserSessions (string filter = default, int? pageSize = default, bool? isDescending = default, int? initialSkip = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetUserSessions : string * Nullable<int> * Nullable<bool> * Nullable<int> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DesktopVirtualization.UserSessionResource>
override this.GetUserSessions : string * Nullable<int> * Nullable<bool> * Nullable<int> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DesktopVirtualization.UserSessionResource>
Public Overridable Function GetUserSessions (Optional filter As String = Nothing, Optional pageSize As Nullable(Of Integer) = Nothing, Optional isDescending As Nullable(Of Boolean) = Nothing, Optional initialSkip As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of UserSessionResource)
Parameters
- filter
- String
OData filter expression. Valid properties for filtering are userprincipalname and sessionstate.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of UserSessionResource that may take multiple service requests to iterate over.