共用方式為


SqlDirectConnection Class

Definition

SqlDirectConnection is a simple ConnectionInfoBase that wraps a SqlConnection object.

public class SqlDirectConnection : Microsoft.SqlServer.Management.Common.ConnectionInfoBase
type SqlDirectConnection = class
    inherit ConnectionInfoBase
Public Class SqlDirectConnection
Inherits ConnectionInfoBase
Inheritance
SqlDirectConnection

Constructors

SqlDirectConnection()

Constructs a new SqlDirectConnection with no SqlConnection

SqlDirectConnection(SqlConnection)

Constructs a new SqlDirectConnection whose properties are calculated from the given SqlConnection

SqlDirectConnection(SqlConnection)

Properties

ServerCaseSensitivity (Inherited from ConnectionInfoBase)
ServerName

Returns the ServerName from the wrapped SqlConnection

ServerType (Inherited from ConnectionInfoBase)
ServerVersion (Inherited from ConnectionInfoBase)
SqlConnection

Returns the wrapped SqlConnection

Methods

ConnectionParmsChanged()
Copy()

Deep copy

ToString() (Inherited from ConnectionInfoBase)

Applies to