Classe ManagedComputer

The ManagedComputer class represents a Windows Management Instrumentation (WMI) installation on an instance of Microsoft SQL Server.

Hierarquia de herança

System.Object
  Microsoft.SqlServer.Management.Smo.SmoObjectBase
    Microsoft.SqlServer.Management.Smo.Wmi.WmiSmoObject
      Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer

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

Sintaxe

'Declaração
Public NotInheritable Class ManagedComputer _
    Inherits WmiSmoObject
'Uso
Dim instance As ManagedComputer
public sealed class ManagedComputer : WmiSmoObject
public ref class ManagedComputer sealed : public WmiSmoObject
[<SealedAttribute>]
type ManagedComputer =  
    class 
        inherit WmiSmoObject 
    end
public final class ManagedComputer extends WmiSmoObject

O tipo ManagedComputer expõe os membros a seguir.

Construtores

  Nome Descrição
Método público ManagedComputer() Initializes a new instance of the ManagedComputer class.
Método público ManagedComputer(String) Initializes a new instance of the ManagedComputer class with the specified computer name.
Método público ManagedComputer(String, String, String) Initializes a new instance of the ManagedComputer class with the specified computer name and the specified login and password.
Método público ManagedComputer(String, String, String, ProviderArchitecture) Initializes a new instance of the ManagedComputer class with the specified computer name the specified login, password and the specified ProviderArchitecture.

Início

Propriedades

  Nome Descrição
Propriedade pública ClientProtocols Represents a collection of ClientProtocol objects. Each ClientProtocol object represents a client protocol defined on the WMI installation.
Propriedade pública ConnectionSettings Gets the connection settings for the referenced WMI installation.
Propriedade pública Name Gets or sets the name of the referenced Windows Management Instrumentation (WMI) object. (Herdado de WmiSmoObject.)
Propriedade pública Properties Represents a collection of Property objects. Each Property object represents a property defined on the Windows Management Instrumentation (WMI) object. (Herdado de WmiSmoObject.)
Propriedade pública ServerAliases Represents a collection of ServerAlias objects. Each ServerAlias object represents a server alias defined on the WMI installation.
Propriedade pública ServerInstances Represents a collection of ServerInstance objects. Each ServerInstance object represents an instance of SQL Server defined on the WMI installation.
Propriedade pública Services Represents a collection of Service objects. Each Service object represents a SQL Server service defined on the WMI installation.
Propriedade pública State Gets the state of the referenced object. (Herdado de SmoObjectBase.)
Propriedade pública Urn Gets the Uniform Resource Name (URN) address that represents the Windows Management Instrumentation (WMI) object. (Herdado de WmiSmoObject.)
Propriedade pública UserData Gets or sets user-defined data associated with the referenced object. (Herdado de SmoObjectBase.)

Início

Métodos

  Nome Descrição
Método público Equals (Herdado de Object.)
Método público GetHashCode (Herdado de Object.)
Método público GetSmoObject Gets the WmiSmoObject object with the specified Uniform Resource Name (URN) address.
Método público GetType (Herdado de Object.)
Método público Initialize Initializes the referenced object. (Herdado de WmiSmoObject.)
Método protegido IsObjectInitialized Specifies whether the referenced object is initialized. (Herdado de WmiSmoObject.)
Método público Refresh Refreshes the referenced object and its properties. (Herdado de WmiSmoObject.)
Método protegido SetName Sets the name of the referenced object. (Herdado de WmiSmoObject.)
Método protegido SetParentImpl Sets the parent of the referenced object. (Herdado de WmiSmoObject.)
Método público ToString (Herdado de Object.)
Método público Validate Validates the state of an object. (Herdado de SmoObjectBase.)

Início

Comentários

With the ManagedComputer class you can:

  • Access client protocols.

  • Access connection settings.

  • Access server aliases.

  • Access instances of SQL Server.

  • Access SQL Server services.

Thread Safety

Qualquer membro público estático (Compartilhado no Microsoft Visual Basic) desse tipo é seguro para operações multi-threaded. Não há garantia de que qualquer membro de instância seja seguro para threads.

Exemplos

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

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência

Namespace Microsoft.SqlServer.Management.Smo.Wmi