<PackageReference Include="System.Security.Permissions" Version="9.0.6" />

OleDbPermission

public sealed class OleDbPermission : DBDataPermission
Enables the .NET Framework Data Provider for OLE DB to help make sure that a user has a security level sufficient to access an OLE DB data source.
public string Provider { get; set; }

This property has been marked as obsolete. Setting this property will have no effect.

public OleDbPermission()

Initializes a new instance of the OleDbPermission class.

Initializes a new instance of the OleDbPermission class.

public OleDbPermission(PermissionState state, bool allowBlankPassword)

Initializes a new instance of the OleDbPermission class.