Freigeben über


Utility-Klasse

The Utility class represents a utility control point (UCP) that defines methods and properties to manage one or more remote instances of SQL Server.

Vererbungshierarchie

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

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

Syntax

'Declaration
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Utility.FacetSR",  _
    True)> _
<PhysicalFacetAttribute> _
<TypeConverterAttribute(GetType(LocalizableTypeConverter))> _
Public NotInheritable Class Utility _
    Inherits SfcInstance _
    Implements ISfcDomain2, ISfcDomain, ISfcDomainLite, ISfcHasConnection,  _
    ISfcAlterable, IAlterable
'Usage
Dim instance As Utility
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Utility.FacetSR", 
    true)]
[PhysicalFacetAttribute]
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
public sealed class Utility : SfcInstance, 
    ISfcDomain2, ISfcDomain, ISfcDomainLite, ISfcHasConnection, ISfcAlterable, 
    IAlterable
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
[LocalizedPropertyResourcesAttribute(L"Microsoft.SqlServer.Management.Utility.FacetSR", 
    true)]
[PhysicalFacetAttribute]
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
public ref class Utility sealed : public SfcInstance, 
    ISfcDomain2, ISfcDomain, ISfcDomainLite, ISfcHasConnection, ISfcAlterable, 
    IAlterable
[<SealedAttribute>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
[<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Utility.FacetSR", 
    true)>]
[<PhysicalFacetAttribute>]
[<TypeConverterAttribute(typeof(LocalizableTypeConverter))>]
type Utility =  
    class 
        inherit SfcInstance 
        interface ISfcDomain2 
        interface ISfcDomain 
        interface ISfcDomainLite 
        interface ISfcHasConnection 
        interface ISfcAlterable 
        interface IAlterable 
    end
public final class Utility extends SfcInstance implements ISfcDomain2, ISfcDomain, ISfcDomainLite, ISfcHasConnection, ISfcAlterable, IAlterable

Der Utility-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode Utility() Initializes a new, default instance of the Utility class.
Öffentliche Methode Utility(SqlStoreConnection) Initializes a new instance of the Utility class with the specified connection to SqlStore.

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 Computers Gets the collection of computers running managed instances.
Öffentliche Eigenschaft CreatedBy Gets the authentication credentials for the user who created the Utility.
Öffentliche Eigenschaft DateCreated Gets the date and time when the SQL Server Utility was created.
Öffentliche Eigenschaft DeployedDacCount Gets the number of deployed DACs on the instances of SQL Server managed by the SQL Server Utility.
Öffentliche Eigenschaft DeployedDacHealthyCount Gets the number of healthy deployed DACs on the instances of SQL Server managed by the SQL Server Utility.
Öffentliche Eigenschaft DeployedDacManagementPendingCount Gets the number of deployed DAC instances that have a pending management status.
Öffentliche Eigenschaft DeployedDacOnOverutilizedComputerCount Gets the number of DACs that are deployed on managed instances run on overutilized computers.
Öffentliche Eigenschaft DeployedDacOnUnderutilizedComputerCount Gets the number of DACs that are deployed on managed instances run on underutilized computers.
Öffentliche Eigenschaft DeployedDacOverutilizedCount Gets the number of overutilized deployed DACs.
Öffentliche Eigenschaft DeployedDacs Gets the number of DACs that are deployed on managed instances.
Öffentliche Eigenschaft DeployedDacUnderutilizedCount Gets the number of deployed, underutilized DACs on all the managed instances.
Öffentliche Eigenschaft DeployedDacUnhealthyCount Gets the number of deployed unhealthy DACs on all the managed instances.
Öffentliche Eigenschaft DeployedDacWithFilesOnOverutilizedVolumeCount Gets the number of deployed DACs that have files on overutilized volumes.
Öffentliche Eigenschaft DeployedDacWithFilesOnUnderutilizedVolumeCount Gets the number of deployed DACs that have files on underutilized volumes.
Öffentliche Eigenschaft DeployedDacWithOverutilizedFileCount Gets the number of deployed DACs that have overutilized files.
Öffentliche Eigenschaft DeployedDacWithOverutilizedProcessorCount Gets the number of deployed DACs that operate over overutilized processors.
Öffentliche Eigenschaft DeployedDacWithUnderutilizedFileCount Gets the number of deployed DACs that have underutilized files.
Öffentliche Eigenschaft DeployedDacWithUnderutilizedProcessorCount Gets the number of deployed DACs that operate on underutilized processors.
Öffentliche Eigenschaft Description Gets or sets a String describing the UCP.
Öffentliche Eigenschaft ManagedInstanceCount Gets the number of instances of SQL Server managed by the UCP.
Öffentliche Eigenschaft ManagedInstanceHealthyCount Gets the number of healthy instances of SQL Server managed by the UCP.
Öffentliche Eigenschaft ManagedInstanceManagementPendingCount Gets the number of instances of SQL Server that have a pending management status.
Öffentliche Eigenschaft ManagedInstanceOnOverutilizedComputerCount Gets the number of managed instances of SQL Server that are running on overutilized computers.
Öffentliche Eigenschaft ManagedInstanceOnUnderutilizedComputerCount Gets the number of managed instances of SQL Server that are running on underutilized computers.
Öffentliche Eigenschaft ManagedInstanceOverutilizedCount Gets the number of overutilized managed instances of SQL Server.
Öffentliche Eigenschaft ManagedInstances Gets a collection containing each instance of SQL Server managed by this Utility.
Öffentliche Eigenschaft ManagedInstanceUnderutilizedCount Gets the number of managed instances of SQL Server that are underutilized.
Öffentliche Eigenschaft ManagedInstanceUnhealthyCount Gets the number of unhealthy managed instances of SQL Server.
Öffentliche Eigenschaft ManagedInstanceWithFilesOnOverutilizedVolumeCount Gets the number of managed instances of SQL Server that have files on overutilized volumes.
Öffentliche Eigenschaft ManagedInstanceWithFilesOnUnderutilizedVolumeCount Gets the number of managed instances of SQL Server that have files on underutilized volumes.
Öffentliche Eigenschaft ManagedInstanceWithOverutilizedFileCount Gets the number of managed instances of SQL Server that have overutilized files.
Öffentliche Eigenschaft ManagedInstanceWithOverutilizedProcessorCount Gets the number of managed instances of SQL Server that are executed on overutilized processors.
Öffentliche Eigenschaft ManagedInstanceWithUnderutilizedFileCount Gets the number of managed instances of SQL Server with underutilized files.
Öffentliche Eigenschaft ManagedInstanceWithUnderutilizedProcessorCount Gets the number of managed instances of SQL Server that are executed on underutilized processors.
Öffentliche Eigenschaft MdwDatabaseName Gets or sets the name of the utility management data warehouse (UMDW) database.
Öffentliche Eigenschaft MdwRetentionLengthInDaysForDaysHistory Gets or sets the length, in days, that data will be retained in the Management Data Warehouse (MDW) history table for per-day entries.
Öffentliche Eigenschaft MdwRetentionLengthInDaysForHoursHistory Gets or sets the length in days that data will be retained in the utility management data warehouse (UMDW) history table for per-hour entries.
Öffentliche Eigenschaft MdwRetentionLengthInDaysForMinutesHistory Gets or sets the length in days that data will be retained in the utility management data warehouse (UMDW) history table for per-minute entries.
Öffentliche Eigenschaft Metadata Returns metadata about the instance and its domain. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft Name Gets the name of the connected SQL Store server.
Öffentliche Eigenschaft OverUtilizationOccurenceFrequency Gets or sets the occurrence frequency that is used to computer over-utilization health states over the specified trailing window.
Öffentliche Eigenschaft OverUtilizationTrailingWindow Gets or sets the trailing window, in hours, used to compute health states.
Öffentliche Eigenschaft Parent Gets or sets the instance parent via the keychain. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft PolicyStore Gets the PolicyStore object that defines the policies of the SQL Store connection.
Öffentliche Eigenschaft Properties Returns a collection instance properties. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft SqlStoreConnection Gets or sets the SQL Store connection
Geschützte Eigenschaft State Returns the state of the SfcInstance object. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft TotalStorageCapacity Gets the storage capacity of the Utility.
Öffentliche Eigenschaft TotalStorageUtilization Gets the amount of SQL Server Utility storage that is currently used.
Öffentliche Eigenschaft UnderUtilizationOccurenceFrequency Gets or sets the occurrence frequency that is used to computer underutilization health states over the specified trailing window.
Öffentliche Eigenschaft UnderUtilizationTrailingWindow Gets or sets the trailing window, in hours, used to compute health states.
Öffentliche Eigenschaft Urn Returns the uniform resource name of the SfcInstance object. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft UtilityName Gets the name of the utility control point (UCP).

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Alter Updates any Utility property changes on the instance of SQL Server.
Öffentliche MethodeStatisches Element Connect Returns a SqlStoreConnection object specified by connection.
Geschützte Methode CreateIdentityKey Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche MethodeStatisches Element CreateUtility(String, SqlStoreConnection) Creates a Utility object.
Öffentliche MethodeStatisches Element CreateUtility(String, SqlStoreConnection, String, SqlSecureString) Creates a Utility object.
Öffentliche Methode Discover Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode EnrollInstance(SqlStoreConnection) Enrolls a Utility object with the connection supplied by sqlStoreConnection parameter.
Öffentliche Methode EnrollInstance(SqlStoreConnection, String, SqlSecureString) Enrolls a Utility object with the connection supplied by sqlStoreConnection parameter.
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode GetChildCollection Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Ö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 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.)
Öffentliche MethodeStatisches Element IsLoginUtilityReader Validates whether the login used in the connection has the utility reader role.
Öffentliche MethodeStatisches Element IsUtilityControlPoint Determines whether the specified server is a utility control point (UCP).
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.)
Öffentliche Methode Refresh Refreshes the SQL Server Utility properties. (Überschreibt SfcInstance.Refresh().)
Geschützte Methode ResetKey Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode ScriptAlter Alters the properties of the base object if it has been changed.
Ö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.)

Zum Anfang

Ereignisse

  Name Beschreibung
Öffentliches Ereignis PropertyChanged CLS-compliant event for property changes. (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 ISfcDomain.GetExecutionEngine Gets a new execution engine interface.
Explizite SchnittstellenimplementierungPrivate Methode ISfcDomain.GetKey Gets a new SfcKey object.
Explizite SchnittstellenimplementierungPrivate Methode ISfcDomain.GetType Gets the Type of the utility.
Explizite SchnittstellenimplementierungPrivate Methode ISfcDomain.GetTypeMetadata Gets the SfcTypeMetadata.
Explizite SchnittstellenimplementierungPrivate Methode ISfcDomain.UseSfcStateManagement Returns True.
Explizite SchnittstellenimplementierungPrivate Methode ISfcDomain2.GetUrnSkeletonsFromType Gets a list of string values that contain the URN skeletons.
Explizite SchnittstellenimplementierungPrivate Eigenschaft ISfcDomainLite.DomainInstanceName Gets the domain instance name.
Explizite SchnittstellenimplementierungPrivate Eigenschaft ISfcDomainLite.DomainName Gets the domain name.
Explizite SchnittstellenimplementierungPrivate Methode ISfcDomainLite.GetLogicalVersion Gets an integer value that specifies the logical version.
Explizite SchnittstellenimplementierungPrivate Eigenschaft ISfcHasConnection.ConnectionContext Gets the SfcConnectionContext.
Explizite SchnittstellenimplementierungPrivate Methode ISfcHasConnection.GetConnection() Gets the ISfcConnection.
Explizite SchnittstellenimplementierungPrivate Methode ISfcHasConnection.GetConnection(SfcObjectQueryMode) Gets the ISfcConnection.
Explizite SchnittstellenimplementierungPrivate Methode ISfcHasConnection.SetConnection Sets the ISfcConnection.

Zum Anfang

Hinweise

Remote instances of SQL Server, represented by ManagedInstance class instances, can be added to the SQL Server Utility's collection using the methods defined by the ManagedInstanceFactory class. After enrollment in the Utility, these instances are not fully managed until their utilization data and health states have been determined.

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