OdbcPermission::Add Method (String^, String^, KeyRestrictionBehavior)
.NET Framework (current version)
Adds access for the specified connection string to the existing state of the permission.
Assembly: System.Data (in System.Data.dll)
public: virtual void Add( String^ connectionString, String^ restrictions, KeyRestrictionBehavior behavior ) override
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
Available since 1.1
Available since 1.1
Show: