.NET Framework Class Library KeyRestrictionBehavior Enumeration Identifies a list of connection string parameters identified by the KeyRestrictions property that are either allowed or not allowed.
Namespace:
System.Data
Assembly:
System.Data (in System.Data.dll)

Syntax
<SerializableAttribute> _
Public Enumeration KeyRestrictionBehavior
[SerializableAttribute]
public enum KeyRestrictionBehavior
[SerializableAttribute]
public enum class KeyRestrictionBehavior
[<SerializableAttribute>]
type KeyRestrictionBehavior

Members
| Member name | Description |
|---|
| AllowOnly | Default. Identifies the only additional connection string parameters that are allowed. | | PreventUsage | Identifies additional connection string parameters that are not allowed. |

Version Information
.NET FrameworkSupported in: 4, 3.5, 3.0, 2.0, 1.1 .NET Framework Client ProfileSupported in: 4, 3.5 SP1

Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

See Also
|
Biblioteca de clases de .NET Framework KeyRestrictionBehavior (Enumeración) Identifica la lista de parámetros de cadena de conexión especificados por la propiedad KeyRestrictions que están permitidos o que no están permitidos.
Espacio de nombres:
System.Data
Ensamblado:
System.Data (en System.Data.dll)

Sintaxis
<SerializableAttribute> _
Public Enumeration KeyRestrictionBehavior
[SerializableAttribute]
public enum KeyRestrictionBehavior
[SerializableAttribute]
public enum class KeyRestrictionBehavior
[<SerializableAttribute>]
type KeyRestrictionBehavior

Miembros
| Nombre de miembro | Descripción |
|---|
| AllowOnly | Predeterminado. Identifica los únicos parámetros de cadena de conexión adicionales que están permitidos. | | PreventUsage | Identifica los parámetros de cadena de conexión adicionales que no están permitidos. |

Información de versión
.NET FrameworkCompatible con: 4, 3.5, 3.0, 2.0, 1.1 .NET Framework Client ProfileCompatible con: 4, 3.5 SP1

Plataformas
Windows 7, Windows Vista SP1 o posterior, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (no se admite Server Core), Windows Server 2008 R2 (se admite Server Core con SP1 o posterior), Windows Server 2003 SP2
.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.

Vea también
|