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;
- The specified role.
true if the direct caller is a member of the specified role; otherwise, false.
Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
.NET Framework Security:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code