DBDataPermission.Add(String, String, KeyRestrictionBehavior) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds access for the specified connection string to the existing state of the DBDataPermission
.
public:
virtual void Add(System::String ^ connectionString, System::String ^ restrictions, System::Data::KeyRestrictionBehavior behavior);
public virtual void Add (string connectionString, string restrictions, System.Data.KeyRestrictionBehavior behavior);
abstract member Add : string * string * System.Data.KeyRestrictionBehavior -> unit
override this.Add : string * string * System.Data.KeyRestrictionBehavior -> unit
Public Overridable Sub Add (connectionString As String, restrictions As String, behavior As KeyRestrictionBehavior)
Parameters
- connectionString
- String
A permitted connection string.
- restrictions
- String
String that identifies connection string parameters that are allowed or disallowed.
- behavior
- KeyRestrictionBehavior
One of the KeyRestrictionBehavior properties.
Remarks
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.
Applies to
See also
Athugasemdir
https://aka.ms/ContentUserFeedback.
Væntanlegt: Á árinu 2024 munum við hætta með GitHub-mál sem ábendingaleið fyrir efni og skipta því út fyrir nýtt ábendingakerfi. Frekari upplýsingar er að finna hér:Senda inn og skoða endurgjöf fyrir