Club.BanUserFromClubAsync(String) 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.
Bans the specified user from the club. Can only be called by club moderators or owner.
public Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IVectorView<Microsoft.Xbox.Services.Clubs.ClubRole>> BanUserFromClubAsync (string xuid);
abstract member BanUserFromClubAsync : string -> Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IVectorView<Microsoft.Xbox.Services.Clubs.ClubRole>>
override this.BanUserFromClubAsync : string -> Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IVectorView<Microsoft.Xbox.Services.Clubs.ClubRole>>
Public Function BanUserFromClubAsync (xuid As String) As IAsyncOperation(Of IVectorView(Of ClubRole))
Parameters
- xuid
- String
The xuid of the user to ban.
Returns
An IVectorView containing the roles the target user now has with the club.
Implements
Microsoft.Xbox.Services.Clubs.__IClubPublicNonVirtuals.BanUserFromClubAsync(System.String)
Remarks
Calls V1 POST clubroster.xboxlive.com/clubs/{clubId}/users/{userId}/roles