DB2Permission Members

DB2Permission overview

Public Constructors

Constructor Description
public constructor DB2®Permission Initializes a new instance of the DB2Permission class.

Public Properties

Property Description
public property AllowBlankPassword (inherited from DBDataPermission) Gets a value indicating whether a blank password is allowed.

Public Methods

Method Description
public method Add Adds access for the specified connection string to the existing state of the DB2Permission.
public method 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.
public method Copy (inherited from DBDataPermission) Overridden. Creates and returns an identical copy of the current permission object.
public method 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.
public method 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.
public method Equals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public method FromXml (inherited from DBDataPermission) Overridden. Reconstructs a security object with a specified state from an XML encoding.
public method 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.
public method GetType (inherited from Object) Gets the Type of the current instance.
public method Intersect (inherited from DBDataPermission) Overridden. Returns a new permission object representing the intersection of the current permission object and the specified permission object.
public method IsSubsetOf (inherited from DBDataPermission) Overridden. Returns a value indicating whether the current permission object is a subset of the specified permission object.
public method IsUnrestricted (inherited from DBDataPermission) Returns a value indicating whether the permission can be represented as unrestricted without any knowledge of the permission semantics.
public method 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.
public method ToString (inherited from CodeAccessPermission) Overridden. Creates and returns a string representation of the current permission object.
public method ToXml (inherited from DBDataPermission) Overridden. Creates an XML encoding of the security object and its current state.
public method 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
protected method 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.

protected method MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.