This documentation is archived and is not being maintained.
.NET Framework 1.1
The methods of the PermissionSet class are listed here. For a complete list of PermissionSet class members, see the PermissionSet Members topic.
|AddPermission||Adds a specified permission to the PermissionSet.|
|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.|
|ContainsNonCodeAccessPermissions||Gets a value indicating whether the PermissionSet contains permissions that are not derived from CodeAccessPermission.|
|Copy||Creates a copy of the PermissionSet.|
|CopyTo||Copies the permission objects of the set to the indicated location in an Array.|
|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.|
|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.|
|Equals (inherited from Object)||Overloaded. Determines whether two Object instances are equal.|
|FromXml||Reconstructs a security object with a specified state from an XML encoding.|
|GetEnumerator||Returns an enumerator for the permissions of the set.|
|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.|
|GetPermission||Gets a permission object of the specified type, if it exists in the set.|
|GetType (inherited from Object)||Gets the Type of the current instance.|
|Intersect||Creates and returns a permission that is the intersection of the current PermissionSet and the specified PermissionSet.|
|IsEmpty||Gets a value indicating whether the PermissionSet is empty.|
|IsSubsetOf||Determines whether the current PermissionSet is a subset of the specified PermissionSet.|
|IsUnrestricted||Determines whether the PermissionSet is Unrestricted.|
|PermitOnly||Causes any Demand that passes through the calling code for any PermissionSet that is not a subset of the current PermissionSet to fail.|
|RemovePermission||Removes a permission of a certain type from the set.|
|SetPermission||Sets a permission to the PermissionSet, replacing any existing permission of the same type.|
|ToString||Overridden. Returns a string representation of the PermissionSet.|
|ToXml||Creates an XML encoding of the security object and its current state.|
|Union||Creates a PermissionSet that is the union of the current PermissionSet and the specified PermissionSet.|
|Finalize (inherited from Object)||Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax.
|MemberwiseClone (inherited from Object)||Creates a shallow copy of the current Object.|