DBDataPermission.Add Method (String, String, KeyRestrictionBehavior)

 

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

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

public virtual 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 properties.

This method can be useful when implementing:

  • 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.

  • When more than one rule is specified, the more restrictive rule is selected.

.NET Framework
Available since 1.1
Return to top
Show: