ConnectionSettings.ConnectAsUser 속성

Gets or sets the Boolean property value that specifies whether the connection is established using impersonation.

네임스페이스:  Microsoft.SqlServer.Management.Common
어셈블리:  Microsoft.SqlServer.ConnectionInfo(Microsoft.SqlServer.ConnectionInfo.dll)

구문

‘선언
Public Property ConnectAsUser As Boolean 
    Get 
    Set
‘사용 방법
Dim instance As ConnectionSettings 
Dim value As Boolean 

value = instance.ConnectAsUser

instance.ConnectAsUser = value
public bool ConnectAsUser { get; set; }
public:
property bool ConnectAsUser {
    bool get ();
    void set (bool value);
}
member ConnectAsUser : bool with get, set
function get ConnectAsUser () : boolean 
function set ConnectAsUser (value : boolean)

속성 값

유형: System.Boolean
A Boolean value that specifies whether the connection is established using impersonation.If True, the connection is established using impersonation.If False (default), the connection is established using the credentials specified by the Login and Password properties.

주의

If the ConnectAsUser property is set to True, the ConnectAsUserName property and the ConnectAsUserPassword property are used to acquire credentials for impersonation. Any subsequent connection is made with the credentials of the specified user, and the LoginSecure property, the Login property, and the Password property are ignored.

참고 항목

참조

ConnectionSettings 클래스

Microsoft.SqlServer.Management.Common 네임스페이스