Export (0) Print
Expand All

OleDbPermission Class

Enables the .NET Framework Data Provider for OLE DB to help ensure that a user has a security level adequate to access an OLE DB data source.

For a list of all members of this type, see OleDbPermission Members.

System.Object
   System.Security.CodeAccessPermission
      System.Data.Common.DBDataPermission
         System.Data.OleDb.OleDbPermission

[Visual Basic]
<Serializable>
NotInheritable Public Class OleDbPermission
   Inherits DBDataPermission
[C#]
[Serializable]
public sealed class OleDbPermission : DBDataPermission
[C++]
[Serializable]
public __gc __sealed class OleDbPermission : public
   DBDataPermission
[JScript]
public
   Serializable
class OleDbPermission extends DBDataPermission

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

This class is intended for future use when the .NET Framework Data Provider for OLE DB is enabled for partial trust scenarios. The .NET Framework Data Provider for OLE DB currently requires FullTrust permission. At present, using the OleDbPermission class has no effect. For more information, see Code Access Security and ADO.NET.

Requirements

Namespace: System.Data.OleDb

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

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

See Also

OleDbPermission Members | System.Data.OleDb Namespace

Show:
© 2014 Microsoft