GetSmoObject 方法
取得具有指定之統一資源名稱 (URN) 位址的 WmiSmoObject 物件。
命名空間: Microsoft.SqlServer.Management.Smo.Wmi
組件: Microsoft.SqlServer.SqlWmiManagement (在 Microsoft.SqlServer.SqlWmiManagement.dll 中)
語法
'宣告
Public Function GetSmoObject ( _
urn As Urn _
) As WmiSmoObject
'用途
Dim instance As ManagedComputer
Dim urn As Urn
Dim returnValue As WmiSmoObject
returnValue = instance.GetSmoObject(urn)
public WmiSmoObject GetSmoObject(
Urn urn
)
public:
WmiSmoObject^ GetSmoObject(
Urn^ urn
)
member GetSmoObject :
urn:Urn -> WmiSmoObject
public function GetSmoObject(
urn : Urn
) : WmiSmoObject
參數
- urn
型別:Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .Urn
具有指定之 URN 位址的 Urn 物件。
傳回值
型別:Microsoft.SqlServer.Management.Smo.Wmi. . :: . .WmiSmoObject
WmiSmoObject 物件,代表具有指定之 URN 位址的物件。