Export (0) Print
Expand All

ContextUtil.IsCallerInRole Method

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.

ExceptionCondition
COMException

There is no COM+ context available.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft