Share via


SecurityCallContext.IsUserInRole(String, String) メソッド

定義

指定されたユーザーが指定されたロールにあるかどうかを検査します。

public:
 bool IsUserInRole(System::String ^ user, System::String ^ role);
public bool IsUserInRole (string user, string role);
member this.IsUserInRole : string * string -> bool
Public Function IsUserInRole (user As String, role As String) As Boolean

パラメーター

user
String

指定されたユーザー。

role
String

指定されたロール。

戻り値

指定されたユーザーが指定されたロールのメンバーである場合は true、それ以外の場合は false

適用対象