DB2®Permission Methods
The methods of the DB2Permission class are listed here.
Public Methods
Method | Description |
---|---|
![]() |
Adds access for the specified connection string to the existing state of the DB2Permission. |
![]() |
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. |
![]() |
Overridden. Creates and returns an identical copy of the current permission object. |
![]() |
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. |
![]() |
Prevents callers higher in the call stack from using the code that calls this method to access the resource specified by the current instance. |
![]() |
Overloaded. Determines whether two Object instances are equal. |
![]() |
Overridden. Reconstructs a security object with a specified state from an XML encoding. |
![]() |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
![]() |
Gets the Type of the current instance. |
![]() |
Overridden. Returns a new permission object representing the intersection of the current permission object and the specified permission object. |
![]() |
Overridden. Returns a value indicating whether the current permission object is a subset of the specified permission object. |
![]() |
Returns a value indicating whether the permission can be represented as unrestricted without any knowledge of the permission semantics. |
![]() |
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. |
![]() |
Overridden. Creates and returns a string representation of the current permission object. |
![]() |
Overridden. Creates an XML encoding of the security object and its current state. |
![]() |
Overridden. Returns a new permission object that is the union of the current and specified permission objects. |
Protected Methods
Method | Description |
---|---|
![]() |
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. |
![]() |
Creates a shallow copy of the current Object. |