Leadtools.Dicom.Services Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
IsUserInRole Method
See Also 
Leadtools.Dicom.Services Namespace > IDICOMManage Interface : IsUserInRole Method



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

Syntax

Visual Basic (Declaration) 
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 IDICOMManage
Dim username As String
Dim role As String
Dim extraData As String
Dim value As Boolean
 
value = instance.IsUserInRole(username, role, extraData)
C# 
virtual bool IsUserInRole( 
   string username,
   string role,
   string extraData
)
C++/CLI 
virtual bool IsUserInRole( 
   String^ username,
   String^ role,
   String^ extraData
) 

Parameters

username
A String representing the user name.
role
A 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: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, Windows Server 2003 family, Windows Server 2008 family

See Also

IsUserInRole requires a Web Viewer Framework Module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features