SocketPermission Methods
.NET Framework 3.0
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| AddPermission | Adds a permission to the set of permissions for a transport address. |
| 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 SocketPermission instance. |
| 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 SocketPermission instance for 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 between two SocketPermission instances. |
| IsSubsetOf | Overridden. Determines if the current permission is a subset of the specified permission. |
| IsUnrestricted | Checks the overall permission state of the object. |
| 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 SocketPermission instance and its current state. |
| Union | Overridden. Returns the logical union between two SocketPermission instances. |
| 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) |