Share via


ManagedComputer.GetSmoObject Method

Gets the WmiSmoObject object with the specified Uniform Resource Name (URN) address.

Namespace:  Microsoft.SqlServer.Management.Smo.Wmi
Assembly:  Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)

Syntax

'Declaration
Public Function GetSmoObject ( _
    urn As Urn _
) As WmiSmoObject
'Usage
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

Parameters

Return Value

Type: Microsoft.SqlServer.Management.Smo.Wmi.WmiSmoObject
A WmiSmoObject object that represents the object with the specified URN address.

Examples

Managing Services and Network Settings by Using WMI Provider

See Also

Reference

ManagedComputer Class

Microsoft.SqlServer.Management.Smo.Wmi Namespace

Other Resources

Connecting to the SQL Server Database Engine