ChatRoomManagementServices.BeginRemoveUsersOrGroupsFromRole 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.
Removes the specified collection of users or user groups from the role on the chat room. This request will be processed asynchronously. See EndRemoveUsersOrGroupsFromRole(IAsyncResult) to complete this asynchronous operation.
public:
IAsyncResult ^ BeginRemoveUsersOrGroupsFromRole(Microsoft::Rtc::Collaboration::PersistentChat::ChatRoomRole role, Uri ^ chatRoomUri, System::Collections::Generic::ICollection<Microsoft::Rtc::Collaboration::PersistentChat::Management::PersistentChatPrincipalSummary ^> ^ principals, AsyncCallback ^ userCallback, System::Object ^ state);
public IAsyncResult BeginRemoveUsersOrGroupsFromRole (Microsoft.Rtc.Collaboration.PersistentChat.ChatRoomRole role, Uri chatRoomUri, System.Collections.Generic.ICollection<Microsoft.Rtc.Collaboration.PersistentChat.Management.PersistentChatPrincipalSummary> principals, AsyncCallback userCallback, object state);
member this.BeginRemoveUsersOrGroupsFromRole : Microsoft.Rtc.Collaboration.PersistentChat.ChatRoomRole * Uri * System.Collections.Generic.ICollection<Microsoft.Rtc.Collaboration.PersistentChat.Management.PersistentChatPrincipalSummary> * AsyncCallback * obj -> IAsyncResult
Public Function BeginRemoveUsersOrGroupsFromRole (role As ChatRoomRole, chatRoomUri As Uri, principals As ICollection(Of PersistentChatPrincipalSummary), userCallback As AsyncCallback, state As Object) As IAsyncResult
Parameters
- role
- ChatRoomRole
The role from which the users and user groups will be removed.
- chatRoomUri
- Uri
The chat room URI.
- principals
- ICollection<PersistentChatPrincipalSummary>
A collection of users and user groups to remove from the specified role.
- userCallback
- AsyncCallback
The method to be invoked when this asynchronous operation completes.
- state
- Object
An object to be passed back to the callback.
Returns
An IAsyncResult that references this operation.
Exceptions
chatRoomUri
is not a valid chat room URI.
chatRoomUri
or principals
is null.
role
has value Creator
The PersistentChatEndpoint is not established.
The chat server connection is not in a valid state to send the command.
The PersistentChatEndpoint encountered an error communicating with the chat server.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for