Condividi tramite


Classe ManagedInstance

The ManagedInstance type represents an instance of SQL Server that is managed by the SQL Server Utility services to control policy, and deployments.

Gerarchia di ereditarietà

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
    Microsoft.SqlServer.Management.Utility.ManagedInstance

Spazio dei nomi  Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)

Sintassi

'Dichiarazione
Public Class ManagedInstance _
    Inherits SfcInstance _
    Implements ISfcCreatable, ICreatable, ISfcDroppable, IDroppable
'Utilizzo
Dim instance As ManagedInstance
public class ManagedInstance : SfcInstance, 
    ISfcCreatable, ICreatable, ISfcDroppable, IDroppable
public ref class ManagedInstance : public SfcInstance, 
    ISfcCreatable, ICreatable, ISfcDroppable, IDroppable
type ManagedInstance =  
    class 
        inherit SfcInstance 
        interface ISfcCreatable 
        interface ICreatable 
        interface ISfcDroppable 
        interface IDroppable 
    end
public class ManagedInstance extends SfcInstance implements ISfcCreatable, ICreatable, ISfcDroppable, IDroppable

Nel tipo ManagedInstance sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico ManagedInstance Initializes a new instance of the ManagedInstance class.

In alto

Proprietà

  Nome Descrizione
Proprietà protetta AbstractIdentityKey Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Proprietà pubblica AgentProxyAccount Gets the SQL Server Agent proxy account used to run scheduled jobs on the instance of SQL Server.
Proprietà pubblica BackupDirectory Gets the backup directory for the server instance.
Proprietà pubblica CacheDirectory Gets the cache directory where temporary files can be stored during deployment onto the instance of SQL Server.
Proprietà pubblica Collation Gets the collation for the server instance.
Proprietà pubblica ComputerNamePhysicalNetBIOS Gives the physical NetBIOS for the server instance.
Proprietà pubblica ComputerProcessorHealthState Gets the computer processor health state.
Proprietà pubblica ContainsOverUtilizedDatabases Gets a value that indicates whether the server instance contains an over utilized databases.
Proprietà pubblica ContainsOverUtilizedVolumes Gets a value that indicates whether the server instance contains an over utilized volumes.
Proprietà pubblica ContainsUnderUtilizedDatabases Gets a value that indicates whether the server instance contains an under utilized databases.
Proprietà pubblica ContainsUnderUtilizedVolumes Gets a value that indicates whether the server instance contains an under utilized volumes.
Proprietà pubblica CpuMaxClockSpeed Gets the maximum clock speed of the CPU.
Proprietà pubblica CpuName Gets the name of the CPU.
Proprietà pubblica DateCreated Gets the time and date when the ManagedInstance object was created.
Proprietà pubblica Edition Gets the edition of the instance of SQL Server.
Proprietà pubblica EngineEdition Gets the engine edition for the instance of SQL Server.
Proprietà pubblica FileSpaceHealthState Gets the file space health state.
Proprietà pubblica ID Gets ID value that uniquely identifies the managed instance of SQL Server.
Proprietà pubblica IdentityKey Gets the key value that identifies the managed instance.
Proprietà pubblica InstanceName Gets the name of the instance of SQL Server.
Proprietà pubblica IsCaseSensitive Gets a value that indicates whether the server instance is case-sensitive.
Proprietà pubblica IsClustered Gets a value that indicates whether the server instance is part of a clustered server.
Proprietà pubblica IsPolicyOverridden Gets a value that indicates whether any of the server instance policies have been overridden.
Proprietà pubblica Language Gets the language used by the managed instance of SQL Server.
Proprietà pubblica LastReportedTime Gets the latest reported time for the properties of the server instance object.
Proprietà pubblica ManagementState Gets the current state of instance of SQL Server with regard to being managed by the SQL Server Utility service.
Proprietà pubblica Metadata Returns metadata about the instance and its domain. Ereditato da SfcInstance.
Proprietà pubblica Name Gets or sets the name of the managed instance.
Proprietà pubblica NetName Gets the NetBIOS name of the network on which the server instance is running.
Proprietà pubblica OSVersion Gets the operating system version of the managed instance of SQL Server.
Proprietà pubblica Parent Gets or sets the Utility object that is the parent of the ManagedInstance object.
Proprietà pubblica PhysicalMemory Gets the physical memory of the managed instance of SQL Server.
Proprietà pubblica Processors Gets the number of processors for the managed instance of SQL Server.
Proprietà pubblica ProductLevel Gets the product level of the server instance.
Proprietà pubblica Properties Returns a collection instance properties. Ereditato da SfcInstance.
Proprietà protetta PropertyStorageProvider Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Proprietà pubblica ServerProcessorHealthState Gets the server instance processor health state.
Proprietà pubblica ServerType Gets the type of the server instance.
Proprietà pubblica ServerUrn Gets the uniform resource name (URN) of the server instance.
Proprietà protetta State Returns the state of the SfcInstance object. Ereditato da SfcInstance.
Proprietà pubblica Urn Returns the uniform resource name of the SfcInstance object. Ereditato da SfcInstance.
Proprietà pubblica Version Specifies the version of the server instance.
Proprietà pubblica VolumeSpaceHealthState Gets the volume space health state.

In alto

Metodi

  Nome Descrizione
Metodo protetto AlterImpl Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto CheckObjectCreated Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto CheckObjectState Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto CreateIdentityKey Creates an SfcKey object. Esegue l'override di SfcInstance.CreateIdentityKey().
Metodo protetto CreateImpl Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico Discover Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto DropImpl Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Object.
Metodo protetto GetChildCollection Throws a UtilityException. There is no such collection. Esegue l'override di SfcInstance.GetChildCollection(String).
Metodo pubblico GetDomain Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblicoMembro statico GetObjectFactory Gets the factory object used to create new instances.
Metodo pubblico GetPropertySet Returns the set of properties for the SfcInstance object. Ereditato da SfcInstance.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto GetTypeMetadataImpl Indicates the domains that override by returning the right TypeMetadata class directly. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto InitializeUIPropertyState Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto MarkForDropImpl Returns a value that indicates the existing objects to be dropped. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto MarkRootAsConnected Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo protetto MoveImpl Indicates the new parent object to move in an instance. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto OnPropertyMetadataChanges Invoked whenever the effective value of any SfcInstance metadata is updated. Ereditato da SfcInstance.
Metodo protetto OnPropertyValueChanges Invoked whenever the effective value of any SfcInstance property is updated. Ereditato da SfcInstance.
Metodo protetto PostAlter Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto PostCreate Sets the ID property of the base type to the execution result. Esegue l'override di SfcInstance.PostCreate(Object).
Metodo protetto PostDrop Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto PostMove Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto PostRename Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico Refresh Refreshes the object's properties by reading them from the server. Ereditato da SfcInstance.
Metodo pubblico Remove Gets the parent SqlStoreConnection object.
Metodo protetto RenameImpl Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto ResetKey Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico Serialize Serializes the instance to XML. Ereditato da SfcInstance.
Metodo pubblico ToString Returns a string representation of the instance Urn. Ereditato da SfcInstance.
Metodo protetto UpdateUIPropertyState Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo protetto Validate Indicates the basic child object's validation. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.

In alto

Eventi

  Nome Descrizione
Evento protetto propertyChanged Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Evento pubblico PropertyChanged CLS-compliant event for property changes. Ereditato da SfcInstance.
Evento protetto propertyMetadataChanged Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Evento pubblico PropertyMetadataChanged CLS-compliant event for property metadata changes. Ereditato da SfcInstance.

In alto

Implementazioni esplicite dell'interfaccia

  Nome Descrizione
Implementazione esplicita dell'interfacciaMetodo privato ICreatable.Create Tests whether the state is managed and creates a server and connection if in the managed state.
Implementazione esplicita dell'interfacciaMetodo privato IDroppable.Drop Tests whether state is managed and drops the instance if it is managed.
Implementazione esplicita dell'interfacciaMetodo privato ISfcCreatable.ScriptCreate Creates an ISfcScript object.
Implementazione esplicita dell'interfacciaMetodo privato ISfcDroppable.ScriptDrop Drops an ISfcScript object.

In alto

Osservazioni

The Managed instance object represents an instance of SQL Server that is included in the group of computers managed by SQL Server Utility services. Using the ManagedObject object, you can:

  • Determine the agent proxy account that runs scheduled jobs on the instance of SQL Server.

  • Determine the cache directory where temporary files are stored during a deployment.

  • Determine the management state of the instance of SQL Server.

  • Stop managing the instance of SQL Server and remove it from the SQL Server Utility.

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.Utility