AuthorizationRule.Roles プロパティ
アセンブリ: System.Web (system.web.dll 内)

承認の検証が必要なロールが格納される StringCollection コレクション。

Roles プロパティは、リソースへのアクセスが許可または拒否されるロールのリストです。Users プロパティ コレクションまたは Roles プロパティ コレクションのいずれか、またはその両方に少なくとも 1 つの値が含まれている必要があります。

' Using the AuthorizationRuleCollection Add method. ' Set the action property. authorizationRule.Action = _ AuthorizationRuleAction.Allow ' Define the new rule to add to the collection. authorizationRule.Users.Add("userName") authorizationRule.Roles.Add("admin") authorizationRule.Verbs.Add("POST") ' Add the new rule to the collection. authorizationSection.Rules.Add(authorizationRule)
// Using the AuthorizationRuleCollection Add method. // Set the action property. authorizationRule.Action = AuthorizationRuleAction.Allow; // Define the new rule to add to the collection. authorizationRule.Users.Add("userName"); authorizationRule.Roles.Add("admin"); authorizationRule.Verbs.Add("POST"); // Add the new rule to the collection. authorizationSection.Rules.Add(authorizationRule);

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からAuthorizationRule.Roles プロパティを検索する場合は、下記のリンクをクリックしてください。

- AuthorizationRule.Roles プロパティのページへのリンク