다음을 통해 공유


OleDbPermission 생성자

정의

OleDbPermission 클래스의 새 인스턴스를 초기화합니다.

오버로드

OleDbPermission()
사용되지 않음.
사용되지 않음.

OleDbPermission 클래스의 새 인스턴스를 초기화합니다.

OleDbPermission(PermissionState)

OleDbPermission 클래스의 새 인스턴스를 초기화합니다.

OleDbPermission(PermissionState, Boolean)
사용되지 않음.
사용되지 않음.

OleDbPermission 클래스의 새 인스턴스를 초기화합니다.

OleDbPermission()

Source:
OleDbPermission.cs
Source:
OleDbPermission.cs
Source:
OleDbPermission.cs
Source:
OleDbPermission.cs

주의

use OleDbPermission(PermissionState.None)

주의

OleDbPermission() has been deprecated. Use the OleDbPermission(PermissionState.None) constructor. http://go.microsoft.com/fwlink/?linkid=14202

OleDbPermission 클래스의 새 인스턴스를 초기화합니다.

public:
 OleDbPermission();
public OleDbPermission ();
[System.Obsolete("use OleDbPermission(PermissionState.None)", true)]
public OleDbPermission ();
[System.Obsolete("OleDbPermission() has been deprecated.  Use the OleDbPermission(PermissionState.None) constructor.  http://go.microsoft.com/fwlink/?linkid=14202", true)]
public OleDbPermission ();
Public Sub New ()
특성

적용 대상

OleDbPermission(PermissionState)

Source:
OleDbPermission.cs
Source:
OleDbPermission.cs
Source:
OleDbPermission.cs
Source:
OleDbPermission.cs

OleDbPermission 클래스의 새 인스턴스를 초기화합니다.

public:
 OleDbPermission(System::Security::Permissions::PermissionState state);
public OleDbPermission (System.Security.Permissions.PermissionState state);
new System.Data.OleDb.OleDbPermission : System.Security.Permissions.PermissionState -> System.Data.OleDb.OleDbPermission
Public Sub New (state As PermissionState)

매개 변수

state
PermissionState

PermissionState 값 중 하나입니다.

적용 대상

OleDbPermission(PermissionState, Boolean)

Source:
OleDbPermission.cs
Source:
OleDbPermission.cs
Source:
OleDbPermission.cs
Source:
OleDbPermission.cs

주의

use OleDbPermission(PermissionState.None)

주의

OleDbPermission(PermissionState state, Boolean allowBlankPassword) has been deprecated. Use the OleDbPermission(PermissionState.None) constructor. http://go.microsoft.com/fwlink/?linkid=14202

OleDbPermission 클래스의 새 인스턴스를 초기화합니다.

public:
 OleDbPermission(System::Security::Permissions::PermissionState state, bool allowBlankPassword);
public OleDbPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);
[System.Obsolete("use OleDbPermission(PermissionState.None)", true)]
public OleDbPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);
[System.Obsolete("OleDbPermission(PermissionState state, Boolean allowBlankPassword) has been deprecated.  Use the OleDbPermission(PermissionState.None) constructor.  http://go.microsoft.com/fwlink/?linkid=14202", true)]
public OleDbPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);
new System.Data.OleDb.OleDbPermission : System.Security.Permissions.PermissionState * bool -> System.Data.OleDb.OleDbPermission
[<System.Obsolete("use OleDbPermission(PermissionState.None)", true)>]
new System.Data.OleDb.OleDbPermission : System.Security.Permissions.PermissionState * bool -> System.Data.OleDb.OleDbPermission
[<System.Obsolete("OleDbPermission(PermissionState state, Boolean allowBlankPassword) has been deprecated.  Use the OleDbPermission(PermissionState.None) constructor.  http://go.microsoft.com/fwlink/?linkid=14202", true)>]
new System.Data.OleDb.OleDbPermission : System.Security.Permissions.PermissionState * bool -> System.Data.OleDb.OleDbPermission
Public Sub New (state As PermissionState, allowBlankPassword As Boolean)

매개 변수

state
PermissionState

PermissionState 값 중 하나입니다.

allowBlankPassword
Boolean

빈 암호를 사용할 수 있는지 여부를 나타냅니다.

특성

설명

PermissionState 열거형이 속성보다 우선합니다AllowBlankPassword. 따라서 를 로 설정 AllowBlankPasswordfalse하면 사용자가 빈 암호를 사용하여 연결하지 못하도록 으로 설정 PermissionStateNone 해야 합니다.

적용 대상