OdbcPermission.Add Method (String, String, KeyRestrictionBehavior)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Adds access for the specified connection string to the existing state of the permission.

Namespace:   System.Data.Odbc
Assembly:  System.Data (in System.Data.dll)

public override void Add(
	string connectionString,
	string restrictions,
	KeyRestrictionBehavior behavior


Type: System.String

A permitted connection string.

Type: System.String

String that identifies connection string parameters that are allowed or disallowed.

Type: System.Data.KeyRestrictionBehavior

One of the KeyRestrictionBehavior values.

This method can be useful when you implement the following:

  • a .NET Framework data provider.

  • an API that must assert for data access permission.

  • an administrative tool or installation program that must modify security policy.

.NET Framework
Available since 1.1
Return to top