Export (0) Print
Expand All

OraclePermissionAttribute.KeyRestrictions Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets connection string parameters that are allowed or disallowed.

Namespace: System.Data.OracleClient
Assembly: System.Data.OracleClient (in system.data.oracleclient.dll)

public string KeyRestrictions { get; set; 
/** @property */
public String get_KeyRestrictions ()

/** @property */
public void set_KeyRestrictions (String value)

public function get KeyRestrictions () : String

public function set KeyRestrictions (value : String)

Property Value

One or more connection string parameters that are allowed or disallowed.

Connection string parameters are identified in the form =. Multiple parameters can be specified, delimited using a semicolon (;). The connection string parameters listed may be identified as either the only additional parameters allowed or additional parameters that are not allowed using the KeyRestrictionBehavior property.

If no key restrictions are specified, and the KeyRestrictionBehavior property is set to AllowOnly, no additional connection string parameters are allowed.

If no key restrictions are specified, and the KeyRestrictionBehavior property is set to PreventUsage, additional connection string parameters are allowed. If more than one rule is set for the same connection string, the more restrictive rule is selected during the permission check.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft