Export (0) Print
Expand All

SecurityCallContext.IsCallerInRole Method

Verifies that the direct caller is a member of the specified role.

[Visual Basic]
Public Function IsCallerInRole( _
   ByVal role As String _
) As Boolean
[C#]
public bool IsCallerInRole(
 string role
);
[C++]
public: bool IsCallerInRole(
 String* role
);
[JScript]
public function IsCallerInRole(
   role : String
) : Boolean;

Parameters

role
The specified role.

Return Value

true if the direct caller is a member of the specified role; otherwise, false.

Requirements

Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

SecurityCallContext Class | SecurityCallContext Members | System.EnterpriseServices Namespace

Show:
© 2015 Microsoft