SimpleRoleProvider.GetRolesForUser(String) メソッド

定義

指定されたユーザーのロールのリストを返します。

public override string[] GetRolesForUser (string username);
override this.GetRolesForUser : string -> string[]
Public Overrides Function GetRolesForUser (username As String) As String()

パラメーター

username
String

ロールの一覧を取得するユーザー。

戻り値

String[]

指定されたユーザーがメンバーになっているすべてのロールの名前。

例外

指定されたユーザーにはメンバーシップ アカウントがありません。

適用対象