你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

HostPoolResource.GetUserSessionsAsync 方法

定义

重载

GetUserSessionsAsync(String, CancellationToken)

列出 userSessions。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/userSessions
  • 操作IdUserSessions_ListByHostPool
GetUserSessionsAsync(String, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, CancellationToken)

列出 userSessions。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/userSessions
  • 操作IdUserSessions_ListByHostPool

GetUserSessionsAsync(String, CancellationToken)

列出 userSessions。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/userSessions
  • 操作IdUserSessions_ListByHostPool
public virtual Azure.AsyncPageable<Azure.ResourceManager.DesktopVirtualization.UserSessionResource> GetUserSessionsAsync (string filter, System.Threading.CancellationToken cancellationToken);
abstract member GetUserSessionsAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.DesktopVirtualization.UserSessionResource>
override this.GetUserSessionsAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.DesktopVirtualization.UserSessionResource>
Public Overridable Function GetUserSessionsAsync (filter As String, cancellationToken As CancellationToken) As AsyncPageable(Of UserSessionResource)

参数

filter
String

OData 筛选器表达式。 用于筛选的有效属性是 userprincipalname 和 sessionstate。

cancellationToken
CancellationToken

要使用的取消标记。

返回

的异步集合 UserSessionResource ,可能需要循环访问多个服务请求。

适用于

GetUserSessionsAsync(String, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, CancellationToken)

列出 userSessions。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/userSessions
  • 操作IdUserSessions_ListByHostPool
public virtual Azure.AsyncPageable<Azure.ResourceManager.DesktopVirtualization.UserSessionResource> GetUserSessionsAsync (string filter = default, int? pageSize = default, bool? isDescending = default, int? initialSkip = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetUserSessionsAsync : string * Nullable<int> * Nullable<bool> * Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.DesktopVirtualization.UserSessionResource>
override this.GetUserSessionsAsync : string * Nullable<int> * Nullable<bool> * Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.DesktopVirtualization.UserSessionResource>
Public Overridable Function GetUserSessionsAsync (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 AsyncPageable(Of UserSessionResource)

参数

filter
String

OData 筛选器表达式。 用于筛选的有效属性是 userprincipalname 和 sessionstate。

pageSize
Nullable<Int32>

每页的项目数。

isDescending
Nullable<Boolean>

指示集合是否为降序。

initialSkip
Nullable<Int32>

要跳过的初始项数。

cancellationToken
CancellationToken

要使用的取消标记。

返回

的异步集合 UserSessionResource ,可能需要循环访问多个服务请求。

适用于