Partager via


Méthode ManagedComputer.GetSmoObject

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

Espace de noms :  Microsoft.SqlServer.Management.Smo.Wmi
Assembly :  Microsoft.SqlServer.SqlWmiManagement (en Microsoft.SqlServer.SqlWmiManagement.dll)

Syntaxe

'Déclaration
Public Function GetSmoObject ( _
    urn As Urn _
) As WmiSmoObject
'Utilisation
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

Paramètres

Valeur de retour

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

Exemples

Gestion des services et des paramètres réseau à l'aide du fournisseur WMI

Voir aussi

Référence

ManagedComputer Classe

Espace de noms Microsoft.SqlServer.Management.Smo.Wmi

Autres ressources

Connexion au moteur de base de données SQL Server