แก้ไข

แชร์ผ่าน


ContextUtil.IsCallerInRole(String) Method

Definition

Determines whether the caller is in the specified role.

public:
 static bool IsCallerInRole(System::String ^ role);
public static bool IsCallerInRole (string role);
static member IsCallerInRole : string -> bool
Public Shared Function IsCallerInRole (role As String) As Boolean

Parameters

role
String

The name of the role to check.

Returns

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

Exceptions

There is no COM+ context available.

Applies to