共用方式為


Server.GetSmoObject 方法

Gets a SqlSmoObject that is specified by a URN.

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

語法

'宣告
Public Function GetSmoObject ( _
    urn As Urn _
) As SqlSmoObject
'用途
Dim instance As Server 
Dim urn As Urn 
Dim returnValue As SqlSmoObject 

returnValue = instance.GetSmoObject(urn)
public SqlSmoObject GetSmoObject(
    Urn urn
)
public:
SqlSmoObject^ GetSmoObject(
    Urn^ urn
)
member GetSmoObject : 
        urn:Urn -> SqlSmoObject
public function GetSmoObject(
    urn : Urn
) : SqlSmoObject

參數

傳回值

型別:Microsoft.SqlServer.Management.Smo.SqlSmoObject
A SqlSmoObject that is specified by a URN.

請參閱

參考

Server 類別

Microsoft.SqlServer.Management.Smo 命名空間