Leadtools.Dicom.WCF Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.25
IsUserInRole Method
See Also 
Leadtools.Dicom.WCF Namespace > DICOMService Class : IsUserInRole Method



username
A System.String representing the user name.
role
A System.String representing the name of the role.
extraData
User custom data.
username
A System.String representing the user name.
role
A System.String representing the name of the role.
extraData
User custom data.
Checks whether a user is a member of specific role.

Syntax

Visual Basic (Declaration) 
Public Overridable Function IsUserInRole( _
   ByVal username As String, _
   ByVal role As String, _
   ByVal extraData As String _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As DICOMService
Dim username As String
Dim role As String
Dim extraData As String
Dim value As Boolean
 
value = instance.IsUserInRole(username, role, extraData)
C# 
public virtual bool IsUserInRole( 
   string username,
   string role,
   string extraData
)
C++/CLI 
public:
virtual bool IsUserInRole( 
   String^ username,
   String^ role,
   String^ extraData
) 

Parameters

username
A System.String representing the user name.
role
A System.String representing the name of the role.
extraData
User custom data.

Return Value

true if the user is a member of the specified role.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also