Condividi tramite


Classe ManagedComputer

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

Gerarchia di ereditarietà

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

Spazio dei nomi  Microsoft.SqlServer.Management.Smo.Wmi
Assembly:  Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)

Sintassi

'Dichiarazione
Public NotInheritable Class ManagedComputer _
    Inherits WmiSmoObject
'Utilizzo
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

Nel tipo ManagedComputer sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico ManagedComputer() Initializes a new instance of the ManagedComputer class.
Metodo pubblico ManagedComputer(String) Initializes a new instance of the ManagedComputer class with the specified computer name.
Metodo pubblico ManagedComputer(String, String, String) Initializes a new instance of the ManagedComputer class with the specified computer name and the specified login and password.
Metodo pubblico 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 alto

Proprietà

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

In alto

Metodi

  Nome Descrizione
Metodo pubblico Equals Ereditato da Object.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetSmoObject Gets the WmiSmoObject object with the specified Uniform Resource Name (URN) address.
Metodo pubblico GetType Ereditato da Object.
Metodo pubblico Initialize Initializes the referenced object. Ereditato da WmiSmoObject.
Metodo protetto IsObjectInitialized Specifies whether the referenced object is initialized. Ereditato da WmiSmoObject.
Metodo pubblico Refresh Refreshes the referenced object and its properties. Ereditato da WmiSmoObject.
Metodo protetto SetName Sets the name of the referenced object. Ereditato da WmiSmoObject.
Metodo protetto SetParentImpl Sets the parent of the referenced object. Ereditato da WmiSmoObject.
Metodo pubblico ToString Ereditato da Object.
Metodo pubblico Validate Validates the state of an object. Ereditato da SmoObjectBase.

In alto

Osservazioni

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

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Esempi

Gestione di servizi e di impostazioni di rete tramite il provider WMI

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Management.Smo.Wmi