ClientSession.SetBlockedUserAsync Method

NOTE: This member is now obsolete. Use Client.Session.SetBlockedUserAsync instead.

Block or unblock runtime user.
<ID("SetBlockedUserAsync", (int)e.SetBlockedUserAsync)> _ 
<EditorBrowsable(EditorBrowsableState.Advanced)> _ 
<Obsolete("Use Client.Session.SetBlockedUserAsync instead.")> _ 
Public Function SetBlockedUserAsync( _ 
ByVal username As String, _ 
ByVal flag As Boolean
) As Task(Of Boolean)
This language is not supported or no code example is available.
[ID("SetBlockedUserAsync", (int)e.SetBlockedUserAsync)] 
[EditorBrowsable(EditorBrowsableState.Advanced)] 
[Obsolete("Use Client.Session.SetBlockedUserAsync instead.")] 
public Task<bool> SetBlockedUserAsync( 
string username
bool flag 
)
This language is not supported or no code example is available.

Parameters

username
string

User name

flag
bool

Flag indicating for blocking (true) or not (false)

Return Value

Task<bool>

Flag indicating success (true) or fail (false)

.NET Framework

Supported in: 4.8

In this article

Definition