NamedPermissionSet Members

Defines a permission set that has a name and description associated with it. This class cannot be inherited.

The following tables list the members exposed by the NamedPermissionSet type.

  Name Description
Public method NamedPermissionSet Overloaded. Initializes a new instance of the NamedPermissionSet class.
Top

  Name Description
Public property Count  Gets the number of permission objects contained in the permission set.(Inherited from PermissionSet.)
Public property Description Gets or sets the text description of the current named permission set.
Public property IsReadOnly  Gets a value indicating whether the collection is read-only.(Inherited from PermissionSet.)
Public property IsSynchronized  Gets a value indicating whether the collection is guaranteed to be thread safe.(Inherited from PermissionSet.)
Public property Name Gets or sets the name of the current named permission set.
Public property SyncRoot  Gets the root object of the current collection.(Inherited from PermissionSet.)
Top

  Name Description
Public method AddPermission  Adds a specified permission to the PermissionSet. (Inherited from PermissionSet.)
Public method Assert  Declares that the calling code can access the resource protected by a permission demand through the code that calls this method, even if callers higher in the stack have not been granted permission to access the resource. Using Assert can create security vulnerabilities. (Inherited from PermissionSet.)
Public method ContainsNonCodeAccessPermissions  Gets a value indicating whether the PermissionSet contains permissions that are not derived from CodeAccessPermission. (Inherited from PermissionSet.)
Public method Static ConvertPermissionSet  Converts an encoded PermissionSet from one XML encoding format to another XML encoding format. (Inherited from PermissionSet.)
Public method Copy Overloaded. Overridden. Creates an equivalent copy of the named permission set.
Public method CopyTo  Copies the permission objects of the set to the indicated location in an Array. (Inherited from PermissionSet.)
Public method Demand  Forces a SecurityException at run time if all callers higher in the call stack have not been granted the permissions specified by the current instance. (Inherited from PermissionSet.)
Public method Deny  Causes any Demand that passes through the calling code for a permission that has an intersection with a permission of a type contained in the current PermissionSet to fail. (Inherited from PermissionSet.)
Public method Equals Overloaded. Overridden.  
Public method FromXml Overridden. Reconstructs a named permission set with a specified state from an XML encoding.
Public method GetEnumerator  Returns an enumerator for the permissions of the set. (Inherited from PermissionSet.)
Public method GetHashCode Overridden. Gets a hash code for the NamedPermissionSet object that is suitable for use in hashing algorithms and data structures such as a hash table.
Public method GetPermission  Gets a permission object of the specified type, if it exists in the set. (Inherited from PermissionSet.)
Public method GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Intersect  Creates and returns a permission set that is the intersection of the current PermissionSet and the specified PermissionSet. (Inherited from PermissionSet.)
Public method IsEmpty  Gets a value indicating whether the PermissionSet is empty. (Inherited from PermissionSet.)
Public method IsSubsetOf  Determines whether the current PermissionSet is a subset of the specified PermissionSet. (Inherited from PermissionSet.)
Public method IsUnrestricted  Determines whether the PermissionSet is Unrestricted. (Inherited from PermissionSet.)
Public method PermitOnly  Causes any Demand that passes through the calling code for any PermissionSet that is not a subset of the current PermissionSet to fail. (Inherited from PermissionSet.)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method RemovePermission  Removes a permission of a certain type from the set. (Inherited from PermissionSet.)
Public method Static RevertAssert  Causes any previous Assert for the current frame to be removed and no longer be in effect. (Inherited from PermissionSet.)
Public method SetPermission  Sets a permission to the PermissionSet, replacing any existing permission of the same type. (Inherited from PermissionSet.)
Public method ToString  Returns a string representation of the PermissionSet. (Inherited from PermissionSet.)
Public method ToXml Overridden. Creates an XML element description of the named permission set.
Public method Union  Creates a PermissionSet that is the union of the current PermissionSet and the specified PermissionSet. (Inherited from PermissionSet.)
Top

Community Additions

ADD
Show: