Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Add Method
Collapse the table of content
Expand the table of content

OdbcPermission.Add Method

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
)

Parameters

connectionString
Type: System.String

A permitted connection string.

restrictions
Type: System.String

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

behavior
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft