OraclePermissionAttribute Class

An OraclePermissionAttribute object enables ODP.NET to enforce declarative security and helps ensure that a user has a security level adequate for accessing data.

Class Inheritance

  System.Object

    System.Attribute

      System.Security.Permissions.SecurityAttribute

        System.Security.Permissions.CodeAccessSecurityAttribute

          System.Data.Common.DBDataPermissionAttribute

            Oracle.DataAccess.Client.OraclePermissionAttribute

Declaration

// ADO.NET 2.0:C#
[Serializable, AttributeUsage(AttributeTargets.Method |
AttributeTargets.Constructor | AttributeTargets.Class | AttributeTargets.Struct |
AttributeTargets.Assembly, AllowMultiple = true, Inherited = false)] 
public sealed class OraclePermissionAttribute: DBDataPermissionAttribute

Thread Safety

All public static methods are thread-safe, although instance methods do not guarantee thread safety.

Requirements

Namespace: Oracle.DataAccess.Client

Assembly: Oracle.DataAccess


OraclePermissionAttribute Members

OraclePermissionAttribute members are listed in the following tables.

OraclePermissionAttribute Constructor

The OraclePermissionAttribute constructor is listed in Table 5-94.

Table 5-94 OraclePermission Constructor

Constructor Description

OraclePermissionAttribute Constructor

Instantiates a new instance of the OraclePermissionAttribute class.


OraclePermissionAttribute Static Methods

The OraclePermissionAttribute static methods are listed in Table 5-95.

Table 5-95 OraclePermissionAttribute Static Methods

Static Methods Description

GetCustomAttribute

Inherited from System.Attribute (Overloaded)

GetCustomAttributes

Inherited from System.Attribute(Overloaded)

IsDefined

Inherited from System.Attribute(Overloaded)

ReferenceEquals

Inherited from System.Object


OraclePermissionAttribute Public Properties

The OraclePermissionAttribute public properties are listed in Table 5-96.

Table 5-96 OraclePermissionAttribute Public Properties

Public Properties Description

Action

Inherited from SecurityAttribute

AllowBlankPassword

Inherited from DBDataPermissionAttribute.

OraclePermissionAttribute ignores this property. Any value set for this property, for an OraclePermissionAttribute object, is ignored.

ConnectionString

Inherited from DBDataPermissionAttribute

KeyRestrictionBehavior

Inherited from DBDataPermissionAttribute

KeyRestrictions

Inherited from DBDataPermissionAttribute

TypeId

Inherited from System.Attribute

Unrestricted

Inherited from SecurityAttribute


OraclePermissionAttribute Public Methods

The OraclePermissionAttribute public methods are listed in Table 5-97.

Table 5-97 OraclePermissionAttribute Public Methods

Public Methods Description

CreatePermission

Returns a new OraclePermissionAttribute object that is configured based on the attributes set

Equals

Inherited from System.Attribute

GetHashCode

Inherited from System.Attribute

GetType

Inherited from System.Attribute

IsDefaultAttribute

Inherited from System.Attribute

Match

Inherited from System.Attribute

ShouldSerializeConnectionString

Inherited from DBDataPermissionAttribute

ShouldSerializeKeyRestrictions

Inherited from DBDataPermissionAttribute

ToString

Inherited from System.Object



OraclePermissionAttribute Constructor

The OraclePermissionAttribute constructor instantiates new instances of the OraclePermissionAttribute class.

Declaration

// C#
public OraclePermissionAttribute (SecurityAction action);

Parameters

  • action

    A System.Security.Permissions.SecurityAction value representing an action that can be performed using declarative security.


OraclePermissionAttribute Static Methods

The OraclePermissionAttribute static methods are listed in Table 5-98.

Table 5-98 OraclePermissionAttribute Static Methods

Static Methods Description

GetCustomAttribute

Inherited from System.Attribute (Overloaded)

GetCustomAttributes

Inherited from System.Attribute(Overloaded)

IsDefined

Inherited from System.Attribute(Overloaded)

ReferenceEquals

Inherited from System.Object



OraclePermissionAttribute Public Properties

The OraclePermissionAttribute public properties are listed in Table 5-99.

Table 5-99 OraclePermissionAttribute Public Properties

Public Properties Description

Action

Inherited from SecurityAttribute

AllowBlankPassword

Inherited from DBDataPermissionAttribute.

OraclePermissionAttribute ignores this property. Any value set for this property, for an OraclePermissionAttribute object, is ignored.

ConnectionString

Inherited from DBDataPermissionAttribute

KeyRestrictionBehavior

Inherited from DBDataPermissionAttribute

KeyRestrictions

Inherited from DBDataPermissionAttribute

TypeId

Inherited from System.Attribute

Unrestricted

Inherited from SecurityAttribute



OraclePermissionAttribute Public Methods

The OraclePermissionAttribute public methods are listed in Table 5-100.

Table 5-100 OraclePermissionAttribute Public Methods

Public Methods Description

CreatePermission

Returns a new OraclePermissionAttribute object that is configured based on the attributes set

Equals

Inherited from System.Attribute

GetHashCode

Inherited from System.Attribute

GetType

Inherited from System.Attribute

IsDefaultAttribute

Inherited from System.Attribute

Match

Inherited from System.Attribute

ShouldSerializeConnectionString

Inherited from DBDataPermissionAttribute

ShouldSerializeKeyRestrictions

Inherited from DBDataPermissionAttribute

ToString

Inherited from System.Object


CreatePermission

This method returns a new OraclePermissionAttribute object that is configured based on the attributes set.

Declaration

// C#
public override IPermission CreatePermission();

Return Value

An OraclePermission object.