Freigeben über


ManagedInstance-Klasse

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

Vererbungshierarchie

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

Namespace:  Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)

Syntax

'Declaration
Public Class ManagedInstance _
    Inherits SfcInstance _
    Implements ISfcCreatable, ICreatable, ISfcDroppable, IDroppable
'Usage
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

Der ManagedInstance-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode ManagedInstance Initializes a new instance of the ManagedInstance class.

Zum Anfang

Eigenschaften

  Name Beschreibung
Geschützte Eigenschaft AbstractIdentityKey Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft AgentProxyAccount Gets the SQL Server Agent proxy account used to run scheduled jobs on the instance of SQL Server.
Öffentliche Eigenschaft BackupDirectory Gets the backup directory for the server instance.
Öffentliche Eigenschaft CacheDirectory Gets the cache directory where temporary files can be stored during deployment onto the instance of SQL Server.
Öffentliche Eigenschaft Collation Gets the collation for the server instance.
Öffentliche Eigenschaft ComputerNamePhysicalNetBIOS Gives the physical NetBIOS for the server instance.
Öffentliche Eigenschaft ComputerProcessorHealthState Gets the computer processor health state.
Öffentliche Eigenschaft ContainsOverUtilizedDatabases Gets a value that indicates whether the server instance contains an over utilized databases.
Öffentliche Eigenschaft ContainsOverUtilizedVolumes Gets a value that indicates whether the server instance contains an over utilized volumes.
Öffentliche Eigenschaft ContainsUnderUtilizedDatabases Gets a value that indicates whether the server instance contains an under utilized databases.
Öffentliche Eigenschaft ContainsUnderUtilizedVolumes Gets a value that indicates whether the server instance contains an under utilized volumes.
Öffentliche Eigenschaft CpuMaxClockSpeed Gets the maximum clock speed of the CPU.
Öffentliche Eigenschaft CpuName Gets the name of the CPU.
Öffentliche Eigenschaft DateCreated Gets the time and date when the ManagedInstance object was created.
Öffentliche Eigenschaft Edition Gets the edition of the instance of SQL Server.
Öffentliche Eigenschaft EngineEdition Gets the engine edition for the instance of SQL Server.
Öffentliche Eigenschaft FileSpaceHealthState Gets the file space health state.
Öffentliche Eigenschaft ID Gets ID value that uniquely identifies the managed instance of SQL Server.
Öffentliche Eigenschaft IdentityKey Gets the key value that identifies the managed instance.
Öffentliche Eigenschaft InstanceName Gets the name of the instance of SQL Server.
Öffentliche Eigenschaft IsCaseSensitive Gets a value that indicates whether the server instance is case-sensitive.
Öffentliche Eigenschaft IsClustered Gets a value that indicates whether the server instance is part of a clustered server.
Öffentliche Eigenschaft IsPolicyOverridden Gets a value that indicates whether any of the server instance policies have been overridden.
Öffentliche Eigenschaft Language Gets the language used by the managed instance of SQL Server.
Öffentliche Eigenschaft LastReportedTime Gets the latest reported time for the properties of the server instance object.
Öffentliche Eigenschaft ManagementState Gets the current state of instance of SQL Server with regard to being managed by the SQL Server Utility service.
Öffentliche Eigenschaft Metadata Returns metadata about the instance and its domain. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft Name Gets or sets the name of the managed instance.
Öffentliche Eigenschaft NetName Gets the NetBIOS name of the network on which the server instance is running.
Öffentliche Eigenschaft OSVersion Gets the operating system version of the managed instance of SQL Server.
Öffentliche Eigenschaft Parent Gets or sets the Utility object that is the parent of the ManagedInstance object.
Öffentliche Eigenschaft PhysicalMemory Gets the physical memory of the managed instance of SQL Server.
Öffentliche Eigenschaft Processors Gets the number of processors for the managed instance of SQL Server.
Öffentliche Eigenschaft ProductLevel Gets the product level of the server instance.
Öffentliche Eigenschaft Properties Returns a collection instance properties. (Geerbt von SfcInstance.)
Geschützte Eigenschaft PropertyStorageProvider Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft ServerProcessorHealthState Gets the server instance processor health state.
Öffentliche Eigenschaft ServerType Gets the type of the server instance.
Öffentliche Eigenschaft ServerUrn Gets the uniform resource name (URN) of the server instance.
Geschützte Eigenschaft State Returns the state of the SfcInstance object. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft Urn Returns the uniform resource name of the SfcInstance object. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft Version Specifies the version of the server instance.
Öffentliche Eigenschaft VolumeSpaceHealthState Gets the volume space health state.

Zum Anfang

Methoden

  Name Beschreibung
Geschützte Methode AlterImpl Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode CheckObjectCreated Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode CheckObjectState Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode CreateIdentityKey Creates an SfcKey object. (Überschreibt SfcInstance.CreateIdentityKey().)
Geschützte Methode CreateImpl Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode Discover Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode DropImpl Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize (Geerbt von Object.)
Geschützte Methode GetChildCollection Throws a UtilityException. There is no such collection. (Überschreibt SfcInstance.GetChildCollection(String).)
Öffentliche Methode GetDomain Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche MethodeStatisches Element GetObjectFactory Gets the factory object used to create new instances.
Öffentliche Methode GetPropertySet Returns the set of properties for the SfcInstance object. (Geerbt von SfcInstance.)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode GetTypeMetadataImpl Indicates the domains that override by returning the right TypeMetadata class directly. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode InitializeUIPropertyState Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode MarkForDropImpl Returns a value that indicates the existing objects to be dropped. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode MarkRootAsConnected Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Geschützte Methode MoveImpl Indicates the new parent object to move in an instance. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode OnPropertyMetadataChanges Invoked whenever the effective value of any SfcInstance metadata is updated. (Geerbt von SfcInstance.)
Geschützte Methode OnPropertyValueChanges Invoked whenever the effective value of any SfcInstance property is updated. (Geerbt von SfcInstance.)
Geschützte Methode PostAlter Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode PostCreate Sets the ID property of the base type to the execution result. (Überschreibt SfcInstance.PostCreate(Object).)
Geschützte Methode PostDrop Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode PostMove Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode PostRename Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode Refresh Refreshes the object's properties by reading them from the server. (Geerbt von SfcInstance.)
Öffentliche Methode Remove Gets the parent SqlStoreConnection object.
Geschützte Methode RenameImpl Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode ResetKey Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode Serialize Serializes the instance to XML. (Geerbt von SfcInstance.)
Öffentliche Methode ToString Returns a string representation of the instance Urn. (Geerbt von SfcInstance.)
Geschützte Methode UpdateUIPropertyState Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode Validate Indicates the basic child object's validation. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)

Zum Anfang

Ereignisse

  Name Beschreibung
Geschütztes Ereignis propertyChanged Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliches Ereignis PropertyChanged CLS-compliant event for property changes. (Geerbt von SfcInstance.)
Geschütztes Ereignis propertyMetadataChanged Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliches Ereignis PropertyMetadataChanged CLS-compliant event for property metadata changes. (Geerbt von SfcInstance.)

Zum Anfang

Explizite Schnittstellenimplementierungen

  Name Beschreibung
Explizite SchnittstellenimplementierungPrivate Methode ICreatable.Create Tests whether the state is managed and creates a server and connection if in the managed state.
Explizite SchnittstellenimplementierungPrivate Methode IDroppable.Drop Tests whether state is managed and drops the instance if it is managed.
Explizite SchnittstellenimplementierungPrivate Methode ISfcCreatable.ScriptCreate Creates an ISfcScript object.
Explizite SchnittstellenimplementierungPrivate Methode ISfcDroppable.ScriptDrop Drops an ISfcScript object.

Zum Anfang

Hinweise

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.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Management.Utility-Namespace