Determines whether the current principal belongs to the specified role. Only valid for iMIS 15 and later; for 10.x it always returns true.

Namespace: Asi.iBO
Assembly: Asi.iBO (in Asi.iBO.dll) Version: 15.1.3.0

Syntax

C#
public bool IsInRole(
	string role
)
Visual Basic
Public Function IsInRole ( _
	role As String _
) As Boolean
Visual C++
public:
virtual bool IsInRole(
	String^ role
) sealed

Parameters

role
Type: System..::..String
The name of the role for which to check membership.

Return Value

true if the current user is a member of the specified role; otherwise, false.

Implements

IPrincipal..::..IsInRole(String)

See Also