Partager via


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.

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Management.Utility
Assembly :  Microsoft.SqlServer.Management.Utility (en Microsoft.SqlServer.Management.Utility.dll)

Syntaxe

'Déclaration
Public Class ManagedInstance _
    Inherits SfcInstance _
    Implements ISfcCreatable, ICreatable, ISfcDroppable, IDroppable
'Utilisation
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

Le type ManagedInstance expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique ManagedInstance Initializes a new instance of the ManagedInstance class.

Haut de la page

Propriétés

  Nom Description
Propriété protégée AbstractIdentityKey Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Propriété publique AgentProxyAccount Gets the SQL Server Agent proxy account used to run scheduled jobs on the instance of SQL Server.
Propriété publique BackupDirectory Gets the backup directory for the server instance.
Propriété publique CacheDirectory Gets the cache directory where temporary files can be stored during deployment onto the instance of SQL Server.
Propriété publique Collation Gets the collation for the server instance.
Propriété publique ComputerNamePhysicalNetBIOS Gives the physical NetBIOS for the server instance.
Propriété publique ComputerProcessorHealthState Gets the computer processor health state.
Propriété publique CpuMaxClockSpeed Gets the maximum clock speed of the CPU.
Propriété publique CpuName Gets the name of the CPU.
Propriété publique DateCreated Gets the time and date when the ManagedInstance object was created.
Propriété publique Edition Gets the edition of the instance of SQL Server.
Propriété publique EngineEdition Gets the engine edition for the instance of SQL Server.
Propriété publique FileSpaceHealthState Gets the file space health state.
Propriété publique ID Gets ID value that uniquely identifies the managed instance of SQL Server.
Propriété publique IdentityKey Gets the key value that identifies the managed instance.
Propriété publique InstanceName Gets the name of the instance of SQL Server.
Propriété publique IsCaseSensitive Gets a value that indicates whether the server instance is case-sensitive.
Propriété publique IsClustered Gets a value that indicates whether the server instance is part of a clustered server.
Propriété publique IsPolicyOverridden Gets a value that indicates whether any of the server instance policies have been overridden.
Propriété publique Language Gets the language used by the managed instance of SQL Server.
Propriété publique LastReportedTime Gets the latest reported time for the properties of the server instance object.
Propriété publique ManagementState Gets the current state of instance of SQL Server with regard to being managed by the SQL Server Utility service.
Propriété publique Metadata Returns metadata about the instance and its domain. (hérité de SfcInstance.)
Propriété publique Name Gets or sets the name of the managed instance.
Propriété publique NetName Gets the NetBIOS name of the network on which the server instance is running.
Propriété publique OSVersion Gets the operating system version of the managed instance of SQL Server.
Propriété publique Parent Gets or sets the Utility object that is the parent of the ManagedInstance object.
Propriété publique PhysicalMemory Gets the physical memory of the managed instance of SQL Server.
Propriété publique Processors Gets the number of processors for the managed instance of SQL Server.
Propriété publique ProductLevel Gets the product level of the server instance.
Propriété publique Properties Returns a collection instance properties. (hérité de SfcInstance.)
Propriété protégée PropertyStorageProvider Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Propriété publique ServerProcessorHealthState Gets the server instance processor health state.
Propriété publique ServerType Gets the type of the server instance.
Propriété publique ServerUrn Gets the uniform resource name (URN) of the server instance.
Propriété protégée State Returns the state of the SfcInstance object. (hérité de SfcInstance.)
Propriété publique Urn Returns the uniform resource name of the SfcInstance object. (hérité de SfcInstance.)
Propriété publique Version Specifies the version of the server instance.
Propriété publique VolumeSpaceHealthState Gets the volume space health state.

Haut de la page

Méthodes

  Nom Description
Méthode protégée AlterImpl Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée CheckObjectCreated Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée CheckObjectState Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée CreateIdentityKey Creates an SfcKey object. (remplace SfcInstance. . :: . .CreateIdentityKey() () () ().)
Méthode protégée CreateImpl Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode publique Discover Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée DropImpl Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode protégée GetChildCollection Throws a UtilityException. There is no such collection. (remplace SfcInstance. . :: . .GetChildCollection(String).)
Méthode publique GetDomain Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publiqueMembre statique GetObjectFactory Gets the factory object used to create new instances.
Méthode publique GetPropertySet Returns the set of properties for the SfcInstance object. (hérité de SfcInstance.)
Méthode publique GetType (hérité de Object.)
Méthode protégée GetTypeMetadataImpl Indicates the domains that override by returning the right TypeMetadata class directly. Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée InitializeUIPropertyState Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée MarkForDropImpl Returns a value that indicates the existing objects to be dropped. Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée MarkRootAsConnected Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode protégée MoveImpl Indicates the new parent object to move in an instance. Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée OnPropertyMetadataChanges Invoked whenever the effective value of any SfcInstance metadata is updated. (hérité de SfcInstance.)
Méthode protégée OnPropertyValueChanges Invoked whenever the effective value of any SfcInstance property is updated. (hérité de SfcInstance.)
Méthode protégée PostAlter Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée PostCreate Sets the ID property of the base type to the execution result. (remplace SfcInstance. . :: . .PostCreate(Object).)
Méthode protégée PostDrop Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée PostMove Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée PostRename Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode publique Refresh Refreshes the object's properties by reading them from the server. (hérité de SfcInstance.)
Méthode publique Remove Gets the parent SqlStoreConnection object.
Méthode protégée RenameImpl Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée ResetKey Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode publique Serialize Serializes the instance to XML. (hérité de SfcInstance.)
Méthode publique ToString Returns a string representation of the instance Urn. (hérité de SfcInstance.)
Méthode protégée UpdateUIPropertyState Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Méthode protégée Validate Indicates the basic child object's validation. Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)

Haut de la page

Événements

  Nom Description
Événement protégé propertyChanged Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Événement public PropertyChanged CLS-compliant event for property changes. (hérité de SfcInstance.)
Événement protégé propertyMetadataChanged Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SfcInstance.)
Événement public PropertyMetadataChanged CLS-compliant event for property metadata changes. (hérité de SfcInstance.)

Haut de la page

Implémentations d'interfaces explicites

  Nom Description
Implémentation d'interface expliciteMéthode privée ICreatable. . :: . .Create Tests whether the state is managed and creates a server and connection if in the managed state.
Implémentation d'interface expliciteMéthode privée IDroppable. . :: . .Drop Tests whether state is managed and drops the instance if it is managed.
Implémentation d'interface expliciteMéthode privée ISfcCreatable. . :: . .ScriptCreate Creates an ISfcScript object.
Implémentation d'interface expliciteMéthode privée ISfcDroppable. . :: . .ScriptDrop Drops an ISfcScript object.

Haut de la page

Notes

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.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.