Users Property
Collapse the table of content
Expand the table of content

AuthorizationRule.Users Property


Gets the users associated with the resource.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

public StringCollection Users { get; }

Property Value

Type: System.Collections.Specialized.StringCollection

A StringCollection collection containing the users whose authorization must be verified.

The Users property is a list of users that are granted or denied access to the resource. There must be at least one value in either the Users property collection or the Roles property collection, or both.

The following code example shows how to use this property.

// Using the AuthorizationRuleCollection Add method.

// Set the action property.
authorizationRule.Action = 
// Define the new rule to add to the collection.

// Add the new rule to the collection.

.NET Framework
Available since 2.0
Return to top
© 2016 Microsoft