MultiServerSqlConnectionInfo 类

Contains SQL Server connection information that is used by Transact-SQL query editors.

继承层次结构

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo.RegSvrEnum. . :: . .UIConnectionInfo
    Microsoft.SqlServer.Management.MultiServerConnection..::..MultiServerSqlConnectionInfo

命名空间:  Microsoft.SqlServer.Management.MultiServerConnection
程序集:  Microsoft.SqlServer.Management.MultiServerConnection(在 Microsoft.SqlServer.Management.MultiServerConnection.dll 中)

语法

声明
Public Class MultiServerSqlConnectionInfo _
    Inherits UIConnectionInfo
用法
Dim instance As MultiServerSqlConnectionInfo
public class MultiServerSqlConnectionInfo : UIConnectionInfo
public ref class MultiServerSqlConnectionInfo : public UIConnectionInfo
type MultiServerSqlConnectionInfo =  
    class
        inherit UIConnectionInfo
    end
public class MultiServerSqlConnectionInfo extends UIConnectionInfo

MultiServerSqlConnectionInfo 类型公开以下成员。

构造函数

  名称 说明
公共方法 MultiServerSqlConnectionInfo() () () () Initializes a new instance of the MultiServerSqlConnectionInfo class.
公共方法 MultiServerSqlConnectionInfo(UIConnectionInfo) Initializes a new instance of the MultiServerSqlConnectionInfo class with the specified connection information.

页首

属性

  名称 说明
公共属性 AdvancedOptions 基础结构。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Gets the advanced options set in a connection dialog. (从 UIConnectionInfo 继承。)
公共属性 ApplicationName 基础结构。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Gets or sets the name of the application in a connection dialog. (从 UIConnectionInfo 继承。)
公共属性 AuthenticationType 基础结构。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Gets or sets a Int32 value that specifies whether the connection dialog should use SQL Server Authentication or Windows Authentication. (从 UIConnectionInfo 继承。)
公共属性 ConnectionProtocolString Specifies the name of the network protocol to use for the connection.
公共属性 ConnectionTimeout Gets or sets the connection timeout interval to the server, in seconds.
公共属性 DefaultDatabaseName Gets or sets the name of the database to connect to by default.
公共属性 DisplayName 基础结构。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Gets or sets a String value that specifies the display name of the connection. (从 UIConnectionInfo 继承。)
公共属性 EncryptConnection Gets or sets a value specifying whether the connection will be encrypted.
公共属性 EncryptedPassword 基础结构。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Gets or sets the encrypted password of the UIConnectionInfo. (从 UIConnectionInfo 继承。)
公共属性 ExecutionTimeout Gets or sets the execution timeout interval for a Transact-SQL batch, in seconds.
公共属性 Id 基础结构。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Gets the connection identifier. (从 UIConnectionInfo 继承。)
公共属性 NetworkProtocol Specifies the type of network protocol that will be used by the connection.
公共属性 PacketSize Gets or sets size, in bytes, of the TCP packets used by the connection.
公共属性 Password 基础结构。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Gets or sets a String value that specifies the login password for the connection when using SQL Server Authentication. (从 UIConnectionInfo 继承。)
公共属性 PersistPassword 基础结构。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Gets or sets a Boolean value indicating whether the password of the UIConnectionInfo should be persisted. (从 UIConnectionInfo 继承。)
公共属性 ServerName 基础结构。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Gets or sets a String value that specifies the name of the instance of the Database Engine for the connection. (从 UIConnectionInfo 继承。)
公共属性 ServerNameNoDot 基础结构。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Gets a String value that specifies the name of the instance of the Database Engine for the connection. If only a period (.) was specified in the dialog, ServerNameNoDot returns (local). (从 UIConnectionInfo 继承。)
公共属性 ServerType 基础结构。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Gets or sets a guid that identifies the type of server the connection uses. (从 UIConnectionInfo 继承。)
公共属性 ServerVersion 基础结构。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Gets or sets a ServerVersion object that specifies the version of the instance of the Database Engine for the connection. (从 UIConnectionInfo 继承。)
公共属性 UserName Gets or sets the name of the login to use when connecting. (覆盖 UIConnectionInfo. . :: . .UserName。)
公共属性 UseWindowsAuthentication Gets or sets a value indicating whether Windows Integrated Security Authentication will be used.
公共属性 WorkstationId Gets or sets the name of the client machine submitting the Transact-SQL batch.

页首

方法

  名称 说明
公共方法 CompareTo 基础结构。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Used to determine the sort order of the current UIConnectionInfo object in relation to another UIConnectionInfo object. (从 UIConnectionInfo 继承。)
公共方法 Copy 基础结构。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Creates a new UIConnectionInfo object based on the properties of the current object. (从 UIConnectionInfo 继承。)
公共方法 CreateSqlConnection Creates a connection to the server.
公共方法 Equals 基础结构。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Determines whether the specified Object is equal to the current Object. (从 UIConnectionInfo 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode 基础结构。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Returns the hash code for the specified type. (从 UIConnectionInfo 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 SaveToStream 基础结构。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Persists connection info to the specified XML stream. (从 UIConnectionInfo 继承。)
公共方法 ToString (从 Object 继承。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。