You are here: MessengerYouLike.IMSDK.IMServer > IMSDK.IMServer Reference > IMSDK Namespace > IMServer Class > IMServer Methods > IMServer.AdminBlockUser Method
MessengerYouLike.IMSDK.IMServer
IMServer.AdminBlockUser Method

Administrators can Block any user.

C#
public Boolean AdminBlockUser(String Username, String Message);
Visual Basic
Public Function AdminBlockUser(ByVal Username As String, ByVal Message As String) As Boolean
Parameters 
Description 
ByVal Username As String 
Username of the user being blocked 
ByVal Message As String 
Message for the blocked user 

Returns True if Block was successful and false if there was a error

 

Using this function will allows administrator to block any user specify a message for them also , so next time user is not allowed to login and the message sepcifed will be displayed to them on there desktop 

 

Only administrator can unblock this user by calling the function IMSDK.IMServer.AdminUnBlockUser 

 

This function can be used in environments when you offer paid services to a user and on completion of paid period the user can be blocked with a message 

or if your system trials ends user can be blocked and lots more...

'[Visual Basic]
 
 
Dim IMServer1 as new MessengerYouLike.IMSDK.IMServer
 
If IMServer1.AdminBlockUser(TxtUsername.Text,TxtMessage.Text) then
Response.Write("User Blocked")
end if
 
You are here: MessengerYouLike.IMSDK.IMServer > IMSDK.IMServer Reference > IMSDK Namespace > IMServer Class > IMServer Methods > IMServer.AdminBlockUser Method
Copyright (c) 2007. All rights reserved.