Class MySqlClientPermission
Enables the provider to help ensure that a user has a security level adequate for accessing data.
Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data.dll
Version: 9.0.0
Syntax
[Serializable]
public sealed class MySqlClientPermission : DBDataPermission
Constructors
MySqlClientPermission(PermissionState)
Declaration
public MySqlClientPermission(PermissionState permissionState)
Parameters
Type | Name | Description |
---|---|---|
PermissionState | permissionState |
Methods
Add(String, String, KeyRestrictionBehavior)
Adds a new connection string with set of restricted keywords to the MySqlClientPermission object
Declaration
public override void Add(string connectionString, string restrictions, KeyRestrictionBehavior behavior)
Parameters
Type | Name | Description |
---|---|---|
String | connectionString | Settings to be used for the connection |
String | restrictions | Keywords to define the restrictions |
System.Data.KeyRestrictionBehavior | behavior | KeyRestrictionBehavior to be used |
Copy()
Returns MySqlClientPermission as an IPermission
Declaration
public override IPermission Copy()
Returns
Type | Description |
---|---|
System.Security.IPermission |