ConnectionSettings.ServerInstance 屬性
取得或設定伺服器的名稱。
命名空間: Microsoft.SqlServer.Management.Common
組件: Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)
語法
'宣告
Public Property ServerInstance As String
Get
Set
'用途
Dim instance As ConnectionSettings
Dim value As String
value = instance.ServerInstance
instance.ServerInstance = value
public string ServerInstance { get; set; }
public:
virtual property String^ ServerInstance {
String^ get () sealed;
void set (String^ value) sealed;
}
abstract ServerInstance : string with get, set
override ServerInstance : string with get, set
final function get ServerInstance () : String
final function set ServerInstance (value : String)
屬性值
型別:String
指定伺服器名稱的 String 值。