Condividi tramite


Classe Utility

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

Gerarchia di ereditarietà

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

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

Sintassi

'Dichiarazione
<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
'Utilizzo
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

Nel tipo Utility sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico Utility() Initializes a new, default instance of the Utility class.
Metodo pubblico Utility(SqlStoreConnection) Initializes a new instance of the Utility class with the specified connection to SqlStore.

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

In alto

Metodi

  Nome Descrizione
Metodo pubblico Alter Updates any Utility property changes on the instance of SQL Server.
Metodo pubblicoMembro statico Connect Returns a SqlStoreConnection object specified by connection.
Metodo protetto CreateIdentityKey Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblicoMembro statico CreateUtility(String, SqlStoreConnection) Creates a Utility object.
Metodo pubblicoMembro statico CreateUtility(String, SqlStoreConnection, String, SqlSecureString) Creates a Utility object.
Metodo pubblico Discover Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico EnrollInstance(SqlStoreConnection) Enrolls a Utility object with the connection supplied by sqlStoreConnection parameter.
Metodo pubblico EnrollInstance(SqlStoreConnection, String, SqlSecureString) Enrolls a Utility object with the connection supplied by sqlStoreConnection parameter.
Metodo pubblico Equals Ereditato da Object.
Metodo protetto GetChildCollection Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
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 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 pubblicoMembro statico IsLoginUtilityReader Validates whether the login used in the connection has the utility reader role.
Metodo pubblicoMembro statico IsUtilityControlPoint Determines whether the specified server is a utility control point (UCP).
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 pubblico Refresh Refreshes the SQL Server Utility properties. Esegue l'override di SfcInstance.Refresh().
Metodo protetto ResetKey Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcInstance.
Metodo pubblico ScriptAlter Alters the properties of the base object if it has been changed.
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.

In alto

Eventi

  Nome Descrizione
Evento pubblico PropertyChanged CLS-compliant event for property changes. 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 ISfcDomain.GetExecutionEngine Gets a new execution engine interface.
Implementazione esplicita dell'interfacciaMetodo privato ISfcDomain.GetKey Gets a new SfcKey object.
Implementazione esplicita dell'interfacciaMetodo privato ISfcDomain.GetType Gets the Type of the utility.
Implementazione esplicita dell'interfacciaMetodo privato ISfcDomain.GetTypeMetadata Gets the SfcTypeMetadata.
Implementazione esplicita dell'interfacciaMetodo privato ISfcDomain.UseSfcStateManagement Returns True.
Implementazione esplicita dell'interfacciaMetodo privato ISfcDomain2.GetUrnSkeletonsFromType Gets a list of string values that contain the URN skeletons.
Implementazione esplicita dell'interfacciaProprietà privata ISfcDomainLite.DomainInstanceName Gets the domain instance name.
Implementazione esplicita dell'interfacciaProprietà privata ISfcDomainLite.DomainName Gets the domain name.
Implementazione esplicita dell'interfacciaMetodo privato ISfcDomainLite.GetLogicalVersion Gets an integer value that specifies the logical version.
Implementazione esplicita dell'interfacciaProprietà privata ISfcHasConnection.ConnectionContext Gets the SfcConnectionContext.
Implementazione esplicita dell'interfacciaMetodo privato ISfcHasConnection.GetConnection() Gets the ISfcConnection.
Implementazione esplicita dell'interfacciaMetodo privato ISfcHasConnection.GetConnection(SfcObjectQueryMode) Gets the ISfcConnection.
Implementazione esplicita dell'interfacciaMetodo privato ISfcHasConnection.SetConnection Sets the ISfcConnection.

In alto

Osservazioni

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.

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