This documentation is archived and is not being maintained.
AspNetHostingPermission Methods
.NET Framework 1.1
The methods of the AspNetHostingPermission class are listed here. For a complete list of AspNetHostingPermission class members, see the AspNetHostingPermission Members topic.
Public Methods
Assert (inherited from CodeAccessPermission) | 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. |
Copy | Overridden. When implemented by a derived class, creates and returns an identical copy of the current permission object. |
Demand (inherited from CodeAccessPermission) | 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. |
Deny (inherited from CodeAccessPermission) | Prevents callers higher in the call stack from using the code that calls this method to access the resource specified by the current instance. |
Equals (inherited from Object) | Overloaded. Determines whether two Object instances are equal. |
FromXml | Overridden. Reconstructs a security object with a specified state from an XML encoding. |
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. |
GetType (inherited from Object) | Gets the Type of the current instance. |
Intersect | Overridden. When implemented by a derived class, creates and returns a permission that is the intersection of the current permission and the specified permission. |
IsSubsetOf | Overridden. Returns a value indicating whether the current permission is a subset of the specified permission. |
IsUnrestricted | Returns a value indicating whether unrestricted access to the resource protected by the current permission is allowed. |
PermitOnly (inherited from CodeAccessPermission) | 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. |
ToString (inherited from CodeAccessPermission) | Overridden. Creates and returns a string representation of the current permission object. |
ToXml | Overridden. Creates an XML encoding of the security object and its current state. |
Union | Overridden. Creates a permission that is the union of the current permission and the specified permission. |
Protected Methods
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. |
See Also
Show:
