Share via


Método ManagedComputer.GetSmoObject

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

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

Sintaxe

'Declaração
Public Function GetSmoObject ( _
    urn As Urn _
) As WmiSmoObject
'Uso
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

Parâmetros

Valor de retorno

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

Exemplos

Gerenciando serviços e configurações de rede através do provedor do WMI

Consulte também

Referência

ManagedComputer Classe

Namespace Microsoft.SqlServer.Management.Smo.Wmi

Outros recursos

Conectando ao Mecanismo de Banco de Dados do SQL Server