Represents a read-only collection that can contain many different types of permissions.
Assembly: mscorlib (in mscorlib.dll)
Initializes a new instance of theclass.
Gets the number of permission objects contained in the permission set.(Inherited from PermissionSet.)
Gets a value that indicates whether the collection is read-only.(Overrides PermissionSet::IsReadOnly.)
Gets a value indicating whether the collection is guaranteed to be thread safe.(Inherited from PermissionSet.)
Gets the root object of the current collection.(Inherited from PermissionSet.)
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.)
Creates a copy of the PermissionSet::Copy().).(Overrides
Reconstructs a security object with a specified state from an XML encoding.(Overrides PermissionSet::FromXml(SecurityElement^).)
Returns an enumerator for the permissions of the set.(Inherited from PermissionSet.)
Gets a permission object of the specified type, if it exists in the set.(Inherited from PermissionSet.)
Removes a permission of a certain type from the set.(Inherited from PermissionSet.)
Creates an XML encoding of the security object and its current state.(Overrides PermissionSet::ToXml().)
This API supports the product infrastructure and is not intended to be used directly from your code. Runs when the entire object graph has been deserialized.(Inherited from PermissionSet.)
Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)
Read-only permission sets are created from explicit XML and cannot be modified after creation. This restriction ensures that the permission set will be restored to the same XML encoding that it was originally created from. Attempting to add or remove a permission from the InvalidOperationException.results in an
Note that any permission you obtain from theis only a copy of the permission. If the copy is mutable and is changed, the permission that is in the is not changed.
Available since 4.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.