次の方法で共有


SecurityCallContext.IsCallerInRole メソッド

直接の呼び出し元が、指定されたロールのメンバかどうかを検査します。

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

パラメータ

  • role
    指定されたロール。

戻り値

直接の呼び出し元が、指定されたロールのメンバである場合は true 。それ以外の場合は false

必要条件

プラットフォーム: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

SecurityCallContext クラス | SecurityCallContext メンバ | System.EnterpriseServices 名前空間