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

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

Requirements

Provider ODP.NET, Unmanaged Driver ODP.NET, Managed Driver
Assembly Oracle.DataAccess.dll Oracle.ManagedDataAccess.dll
Namespace Oracle.DataAccess.Client Oracle.ManagedDataAccess.Client
.NET Framework 3.5, 4.0, 4.5 4.0, 4.5

Thread Safety

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

OraclePermissionAttribute Members

OraclePermissionAttribute members are listed in the following tables.

OraclePermissionAttribute Constructor

The OraclePermissionAttribute constructor is listed in Table 6-116.

Table 6-116 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 6-117.

Table 6-117 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 6-118.

Table 6-118 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 6-119.

Table 6-119 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 6-120.

Table 6-120 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 6-121.

Table 6-121 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 6-122.

Table 6-122 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.