共用方式為


GetServerObject 方法

Returns the Server object that represents the instance of SQL Server on which the dependency discovery operation is running.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Protected Function GetServerObject As Server
'用途
Dim returnValue As Server

returnValue = Me.GetServerObject()
protected Server GetServerObject()
protected:
Server^ GetServerObject()
member GetServerObject : unit -> Server 
protected function GetServerObject() : Server

傳回值

型別:Microsoft.SqlServer.Management.Smo. . :: . .Server
A Server object value that specifies the instance of SQL Server.

範例

指令碼