Share via


GetSmoObject 方法

取得 URN 所指定的 SqlSmoObject。

命名空間:  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