IPrincipal.IsInRole(String) メソッド

定義

現在のプリンシパルが指定したロールに属しているかどうかを判断します。

public:
 bool IsInRole(System::String ^ role);
public bool IsInRole(string role);
abstract member IsInRole : string -> bool
Public Function IsInRole (role As String) As Boolean

パラメーター

role
String

メンバーシップを確認するロールの名前。

返品

true 現在のプリンシパルが指定されたロールのメンバーである場合。それ以外の場合は false

適用対象