다음을 통해 공유


ServerInstance 속성

Gets or sets the instance of SQL Server that is the registered server.

네임스페이스:  Microsoft.SqlServer.Management.Smo.RegisteredServers
어셈블리:  Microsoft.SqlServer.SmoExtended.dll의 Microsoft.SqlServer.SmoExtended

구문

‘선언
<SfcPropertyAttribute> _
Public Property ServerInstance As String
    Get
    Set
‘사용 방법
Dim instance As RegisteredServer
Dim value As String

value = instance.ServerInstance

instance.ServerInstance = value
[SfcPropertyAttribute]
public string ServerInstance { get; set; }
[SfcPropertyAttribute]
public:
property String^ ServerInstance {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute>]
member ServerInstance : string with get, set
function get ServerInstance () : String
function set ServerInstance (value : String)

속성 값

형식: System. . :: . .String
A String value that specifies the instance of SQL Server that is the registered server.