SqlConnectionInfo 類別
The SqlConnectionInfo object represents information that is required to establish a connection to an instance of SQL Server.
繼承階層
System.Object
Microsoft.SqlServer.Management.Common.ConnectionInfoBase
Microsoft.SqlServer.Management.Common.SqlOlapConnectionInfoBase
Microsoft.SqlServer.Management.Common.SqlConnectionInfo
命名空間: Microsoft.SqlServer.Management.Common
組件: Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)
語法
'宣告
<SerializableAttribute> _
<ComVisibleAttribute(False)> _
Public Class SqlConnectionInfo _
Inherits SqlOlapConnectionInfoBase
'用途
Dim instance As SqlConnectionInfo
[SerializableAttribute]
[ComVisibleAttribute(false)]
public class SqlConnectionInfo : SqlOlapConnectionInfoBase
[SerializableAttribute]
[ComVisibleAttribute(false)]
public ref class SqlConnectionInfo : public SqlOlapConnectionInfoBase
[<SerializableAttribute>]
[<ComVisibleAttribute(false)>]
type SqlConnectionInfo =
class
inherit SqlOlapConnectionInfoBase
end
public class SqlConnectionInfo extends SqlOlapConnectionInfoBase
SqlConnectionInfo 型別公開下列成員。
建構函式
名稱 | 說明 | |
---|---|---|
SqlConnectionInfo() | Initializes a new instance of the SqlConnectionInfo class. | |
SqlConnectionInfo(String) | Initializes a new instance of the SqlConnectionInfo class. | |
SqlConnectionInfo(SqlConnectionInfo) | Initializes a new instance of the SqlConnectionInfo class. | |
SqlConnectionInfo(ServerConnection, ConnectionType) | Initializes a new instance of the SqlConnectionInfo class. | |
SqlConnectionInfo(String, String, String) | Initializes a new instance of the SqlConnectionInfo class. |
上層
屬性
名稱 | 說明 | |
---|---|---|
AdditionalParameters | Gets or sets the additional parameters for the connection. | |
ApplicationName | Gets or sets the name of the application that is connected to the instance of SQL Server. | |
ConnectionProtocol | Gets or sets the network protocol used by the connection to the instance of SQL Server. | |
ConnectionString | Gets the connection string used when the connection is established with the instance of SQL Server. (覆寫 SqlOlapConnectionInfoBase.ConnectionString。) | |
ConnectionStringInternal | Gets or sets the internal connection string. (繼承自 SqlOlapConnectionInfoBase。) | |
ConnectionTimeout | Gets or sets the number of seconds before a connection times out. (繼承自 SqlOlapConnectionInfoBase。) | |
ConnectionTimeoutInternal | Gets or sets the internal connection timeout period in seconds. (繼承自 SqlOlapConnectionInfoBase。) | |
DatabaseName | Gets or sets the database with which the connection is established. (繼承自 SqlOlapConnectionInfoBase。) | |
DatabaseNameInternal | Gets or sets the internal database name. (繼承自 SqlOlapConnectionInfoBase。) | |
EncryptConnection | Gets or sets the Boolean property value that specifies whether the connection information is encrypted. | |
IntegratedSecurityInternal | Gets or sets the Boolean property value that specifies whether the connection supports integrated security. (繼承自 SqlOlapConnectionInfoBase。) | |
MaxPoolSize | Gets or sets the maximum number of execution threads in a thread pool that the connection will accept. | |
MinPoolSize | Gets or sets the minimum number of execution threads in a thread pool that the connection will accept. | |
PacketSize | Gets or sets the network packet size used by the connection to send and receive data in bytes. | |
Password | Gets or sets the password used to establish a connection. (繼承自 SqlOlapConnectionInfoBase。) | |
PoolConnectionLifeTime | Gets or sets the pool connection period in seconds. | |
Pooled | Gets or sets the SqlBoolean property value that specifies whether the connection is pooled. | |
QueryTimeout | Gets or sets the number of seconds before a query times out. (繼承自 SqlOlapConnectionInfoBase。) | |
QueryTimeoutInternal | Gets or sets the internal query timeout period in seconds. (繼承自 SqlOlapConnectionInfoBase。) | |
RebuildConnectionStringInternal | Gets or sets a Boolean indicating whether the internal connection string must be rebuilt. (繼承自 SqlOlapConnectionInfoBase。) | |
SecurePassword | Gets or sets the secure password used to establish a connection. (繼承自 SqlOlapConnectionInfoBase。) | |
ServerCaseSensitivity | Gets or sets the server case sensitivity for the connection. (繼承自 ConnectionInfoBase。) | |
ServerName | Gets or sets the name of the instance of SQL Server. (繼承自 SqlOlapConnectionInfoBase。) | |
ServerNameInternal | Gets or sets the internal name of the instance of SQL Server. (繼承自 SqlOlapConnectionInfoBase。) | |
ServerType | Gets or sets the server connection type. (繼承自 ConnectionInfoBase。) | |
ServerVersion | Gets or sets the version information about the instance of SQL Server. (繼承自 ConnectionInfoBase。) | |
UseIntegratedSecurity | Gets or sets the Boolean property value that specifies whether the connection uses integrated security. (繼承自 SqlOlapConnectionInfoBase。) | |
UserName | Gets or sets the user that is connecting to the instance of SQL Server. (繼承自 SqlOlapConnectionInfoBase。) | |
WorkstationId | Gets or sets the value that uniquely identifies the client workstation. |
上層
方法
名稱 | 說明 | |
---|---|---|
ConnectionParmsChanged | Changes the connection parameters. (繼承自 SqlOlapConnectionInfoBase。) | |
Copy | Returns a copy of the SqlConnectionInfo object. | |
CreateConnectionObject | Creates a system connection object. (覆寫 SqlOlapConnectionInfoBase.CreateConnectionObject()。) | |
Equals | (繼承自 Object。) | |
Finalize | (繼承自 Object。) | |
GetHashCode | (繼承自 Object。) | |
GetType | (繼承自 Object。) | |
MemberwiseClone | (繼承自 Object。) | |
ToString | Returns the SqlConnectionInfo object in string format. (覆寫 SqlOlapConnectionInfoBase.ToString()。) |
上層
欄位
名稱 | 說明 | |
---|---|---|
DefaultNetworkProtocol | The NetworkProtocol object that specifies the default network protocol for the connection. |
上層
備註
The SqlConnectionInfo object can be passed as a parameter when constructing the ServerConnection object to provide connection information.
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。