Dela via


RoomsClient.GetRoomsAsync(CancellationToken) Method

Definition

Gets all rooms asynchronously.

public virtual Azure.AsyncPageable<Azure.Communication.Rooms.CommunicationRoom> GetRoomsAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetRoomsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Communication.Rooms.CommunicationRoom>
override this.GetRoomsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Communication.Rooms.CommunicationRoom>
Public Overridable Function GetRoomsAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of CommunicationRoom)

Parameters

cancellationToken
CancellationToken

Returns

A Task<TResult> representing the result of the asynchronous operation.

Exceptions

The server returned an error. See Message for details returned from the server.

Applies to