WebPermission Members
.NET Framework 3.0
Controls rights to access HTTP Internet resources.
The following tables list the members exposed by the WebPermission type.
| Name | Description | |
|---|---|---|
| AcceptList | This property returns an enumeration of a single accept permissions held by this WebPermission. The possible objects types contained in the returned enumeration are String and System.Text.RegularExpressions.Regex. |
| ConnectList | This property returns an enumeration of a single connect permissions held by this WebPermission. The possible objects types contained in the returned enumeration are String and System.Text.RegularExpressions.Regex. |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| AddPermission | Overloaded. Adds the specified URI with the specified access rights to the current WebPermission. |
| 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 issues. (inherited from CodeAccessPermission) |
| Copy | Overridden. Creates a copy of a WebPermission. |
| Demand | Forces a SecurityException at run time if all callers higher in the call stack have not been granted the permission specified by the current instance. (inherited from CodeAccessPermission) |
| Deny | Prevents callers higher in the call stack from using the code that calls this method to access the resource specified by the current instance. (inherited from CodeAccessPermission) |
| Equals | Overloaded. (inherited from CodeAccessPermission) |
| FromXml | Overridden. Reconstructs a WebPermission from an XML encoding. |
| GetHashCode | Gets a hash code for the CodeAccessPermission object that is suitable for use in hashing algorithms and data structures such as a hash table. (inherited from CodeAccessPermission) |
| GetType | Gets the Type of the current instance. (inherited from Object) |
| Intersect | Overridden. Returns the logical intersection of two WebPermission instances. |
| IsSubsetOf | Overridden. Determines whether the current WebPermission is a subset of the specified object. |
| IsUnrestricted | Checks the overall permission state of the WebPermission. |
| PermitOnly | Prevents callers higher in the call stack from using the code that calls this method to access all resources except for the resource specified by the current instance. (inherited from CodeAccessPermission) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (inherited from Object) |
| RevertAll | Causes all previous overrides for the current frame to be removed and no longer in effect. (inherited from CodeAccessPermission) |
| RevertAssert | Causes any previous Assert for the current frame to be removed and no longer in effect. (inherited from CodeAccessPermission) |
| RevertDeny | Causes any previous Deny for the current frame to be removed and no longer in effect. (inherited from CodeAccessPermission) |
| RevertPermitOnly | Causes any previous PermitOnly for the current frame to be removed and no longer in effect. (inherited from CodeAccessPermission) |
| ToString | Creates and returns a string representation of the current permission object. (inherited from CodeAccessPermission) |
| ToXml | Overridden. Creates an XML encoding of a WebPermission and its current state. |
| Union | Overridden. Returns the logical union between two instances of the WebPermission class. |
| Name | Description | |
|---|---|---|
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object) |