skmMenu: An ASP.NET Menu Control

RoleCollection Members

RoleCollection overview

Public Instance Constructors

RoleCollection ConstructorInitializes a new instance of the RoleCollection class.

Public Instance Properties

Count Returns the number of roles in the collection.
Roles Returns the list of roles as a string array.

Public Instance Methods

Add Adds a new role to the collection.
AddRange Adds a range of roles to the collection.
Clear Clears out the roles collection.
Contains Returns a Boolean indicating if the passed-in role name exists in the role collection.
Disjoint Returns true if this role collection and the passed in role collection are disjoint (share no elements in common).
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
Remove Removes a role from the collection.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

Private Instance Properties

System.Web.UI.IStateManager.IsTrackingViewState

Explicit Interface Implementations

IStateManager.LoadViewState Iterate through the object array passed in. For each element in the object array passed-in, a new role is added to the collection.
IStateManager.SaveViewState Returns an array of objects, where each object is a string in the collection.
IStateManager.TrackViewState Indicates that changes to the view state should be tracked.

See Also

RoleCollection Class | skmMenu Namespace