ContextUtil::IsCallerInRole Method (String^)

 

Determines whether the caller is in the specified role.

Namespace:   System.EnterpriseServices
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)

public:
static bool IsCallerInRole(
	String^ role
)

Parameters

role
Type: System::String^

The name of the role to check.

Return Value

Type: System::Boolean

true if the caller is in the specified role; otherwise, false.

Exception Condition
COMException

There is no COM+ context available.

.NET Framework
Available since 1.1
Return to top
Show: