Export (0) Print
Expand All

PermissionSet Methods

The PermissionSet type exposes the following members.

  Name Description
Public method AddPermission Adds a specified permission to the PermissionSet.
Protected method AddPermissionImpl Adds a specified permission to the 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.
Public method ContainsNonCodeAccessPermissions Gets a value indicating whether the PermissionSet contains permissions that are not derived from CodeAccessPermission.
Public method Static member ConvertPermissionSet Infrastructure. Obsolete. Converts an encoded PermissionSet from one XML encoding format to another XML encoding format.
Public method Copy Creates a copy of the PermissionSet.
Public method CopyTo Copies the permission objects of the set to the indicated location in an Array.
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.
Public method Deny Obsolete. 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.
Public method Equals Determines whether the specified PermissionSet or NamedPermissionSet object is equal to the current PermissionSet. (Overrides Object.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method FromXml Reconstructs a security object with a specified state from an XML encoding.
Public method GetEnumerator Returns an enumerator for the permissions of the set.
Protected method GetEnumeratorImpl Returns an enumerator for the permissions of the set.
Public method GetHashCode Gets a hash code for the PermissionSet object that is suitable for use in hashing algorithms and data structures such as a hash table. (Overrides Object.GetHashCode().)
Public method GetPermission Gets a permission object of the specified type, if it exists in the set.
Protected method GetPermissionImpl Gets a permission object of the specified type, if it exists in the set.
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.
Public method IsEmpty Gets a value indicating whether the PermissionSet is empty.
Public method IsSubsetOf Determines whether the current PermissionSet is a subset of the specified PermissionSet.
Public method IsUnrestricted Determines whether the PermissionSet is Unrestricted.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
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.
Public method RemovePermission Removes a permission of a certain type from the set.
Protected method RemovePermissionImpl Removes a permission of a certain type from the set.
Public method Static member RevertAssert Causes any previous Assert for the current frame to be removed and no longer be in effect.
Public method SetPermission Sets a permission to the PermissionSet, replacing any existing permission of the same type.
Protected method SetPermissionImpl Sets a permission to the PermissionSet, replacing any existing permission of the same type.
Public method ToString Returns a string representation of the PermissionSet. (Overrides Object.ToString().)
Public method ToXml Creates an XML encoding of the security object and its current state.
Public method Union Creates a PermissionSet that is the union of the current PermissionSet and the specified PermissionSet.
Top

  Name Description
Public Extension Method AsParallel Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Cast<TResult> Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method OfType<TResult> Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

  Name Description
Explicit interface implemetation Private method IDeserializationCallback.OnDeserialization Infrastructure. Runs when the entire object graph has been deserialized.
Top
Show:
© 2015 Microsoft