DB2®Permission Methods
The methods of the DB2Permission class are listed here.
Public Methods
| Method | Description |
|---|---|
Add |
Adds access for the specified connection string to the existing state of the DB2Permission. |
Assert (inherited from CodeAccessPermission) |
Asserts that calling code can access the resource identified by the current permission through the code that calls this method, even if callers higher in the stack have not been granted permission to access the resource. |
Copy (inherited from DBDataPermission) |
Overridden. 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 (inherited from DBDataPermission) |
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 (inherited from DBDataPermission) |
Overridden. Returns a new permission object representing the intersection of the current permission object and the specified permission object. |
IsSubsetOf (inherited from DBDataPermission) |
Overridden. Returns a value indicating whether the current permission object is a subset of the specified permission object. |
IsUnrestricted (inherited
from DBDataPermission) |
Returns a value indicating whether the permission can be represented as unrestricted without any knowledge of the permission semantics. |
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 (inherited from DBDataPermission) |
Overridden. Creates an XML encoding of the security object and its current state. |
Union (inherited from DBDataPermission) |
Overridden. Returns a new permission object that is the union of the current and specified permission objects. |
Protected Methods
| Method | Description |
|---|---|
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 Microsoft(R) Visual C++(R), finalizers are expressed using destructor syntax. |
MemberwiseClone (inherited
from Object) |
Creates a shallow copy of the current Object. |