Utility 类

定义

Utility类代表一个实用工具控制点(UCP),定义了管理一个或多个 SQL Server 远程实例的方法和属性。

public ref class Utility sealed : Microsoft::SqlServer::Management::Sdk::Sfc::SfcInstance, Microsoft::SqlServer::Management::Common::IAlterable, Microsoft::SqlServer::Management::Sdk::Sfc::ISfcAlterable, Microsoft::SqlServer::Management::Sdk::Sfc::ISfcDomain2
[Microsoft.SqlServer.Management.Facets.EvaluationMode(Microsoft.SqlServer.Management.Dmf.AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[Microsoft.SqlServer.Management.Sdk.Sfc.LocalizedPropertyResources("Microsoft.SqlServer.Management.Utility.FacetSR", true)]
[Microsoft.SqlServer.Management.Sdk.Sfc.PhysicalFacet]
[System.ComponentModel.TypeConverter(typeof(Microsoft.SqlServer.Management.Sdk.Sfc.LocalizableTypeConverter))]
public sealed class Utility : Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance, Microsoft.SqlServer.Management.Common.IAlterable, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcAlterable, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcDomain2
[<Microsoft.SqlServer.Management.Facets.EvaluationMode(Microsoft.SqlServer.Management.Dmf.AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
[<Microsoft.SqlServer.Management.Sdk.Sfc.LocalizedPropertyResources("Microsoft.SqlServer.Management.Utility.FacetSR", true)>]
[<Microsoft.SqlServer.Management.Sdk.Sfc.PhysicalFacet>]
[<System.ComponentModel.TypeConverter(typeof(Microsoft.SqlServer.Management.Sdk.Sfc.LocalizableTypeConverter))>]
type Utility = class
    inherit SfcInstance
    interface ISfcDomain2
    interface ISfcDomain
    interface ISfcDomainLite
    interface ISfcHasConnection
    interface ISfcAlterable
    interface IAlterable
Public NotInheritable Class Utility
Inherits SfcInstance
Implements IAlterable, ISfcAlterable, ISfcDomain2
继承
属性
实现

注解

SQL Server的远程实例,由类实例表示ManagedInstance,可以通过ManagedInstanceFactory类定义的方法添加到SQL Server Utility的集合中。 在注册后 Utility,这些情况在确定使用数据和健康状况之前不会被完全管理。

构造函数

名称 说明
Utility()

初始化类的新默认实例 Utility

Utility(SqlStoreConnection)

初始化一个与指定连接SqlStore的类新实例Utility

属性

名称 说明
AbstractIdentityKey

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
Computers

获取运行托管实例的计算机集合。

CreatedBy

获取创建该 Utility文件的用户的认证凭据。

DateCreated

获取 SQL Server 工具创建的日期和时间。

DeployedDacCount

获取由 SQL Server 工具管理的 SQL Server 实例上已部署的 DAC 数量。

DeployedDacHealthyCount

获取由 SQL Server 工具管理的 SQL Server 实例上已部署的健康 DAC 数量。

DeployedDacManagementPendingCount

获取处于待处理管理状态的已部署DAC实例数量。

DeployedDacOnOverutilizedComputerCount

获取部署在托管实例上、运行在过度使用计算机上的DAC数量。

DeployedDacOnUnderutilizedComputerCount

获取部署在托管实例上、运行在未充分利用计算机上的DAC数量。

DeployedDacOverutilizedCount

获取了过度使用的部署DAC数量。

DeployedDacs

获取部署在托管实例上的DAC数量。

DeployedDacUnderutilizedCount

获取所有托管实例中已部署且利用率不足的DAC数量。

DeployedDacUnhealthyCount

获取所有托管实例中部署的不健康DAC数量。

DeployedDacWithFilesOnOverutilizedVolumeCount

获取部署中文件存放于过度使用卷的 DAC 数量。

DeployedDacWithFilesOnUnderutilizedVolumeCount

获取部署中文件存放在未充分利用卷上的DAC数量。

DeployedDacWithOverutilizedFileCount

获取部署中文件过度使用的 DAC 数量。

DeployedDacWithOverutilizedProcessorCount

获取在过度使用处理器上运行的部署DAC数量。

DeployedDacWithUnderutilizedFileCount

获取部署中文件未充分利用的 DAC 数量。

DeployedDacWithUnderutilizedProcessorCount

获取运行在未充分利用处理器上的部署DAC数量。

Description

获得或设置描述 String UCP的 。

ManagedInstanceCount

获取UCP管理的SQL Server实例数量。

ManagedInstanceHealthyCount

获取由UCP管理的健康SQL Server实例数量。

ManagedInstanceManagementPendingCount

获取处于待处理管理状态的 SQL Server 实例数量。

ManagedInstanceOnOverutilizedComputerCount

获取运行在过度使用电脑上的SQL Server托管实例数量。

ManagedInstanceOnUnderutilizedComputerCount

获取运行在未充分利用计算机上的SQL Server托管实例数量。

ManagedInstanceOverutilizedCount

获取SQL Server中过度使用的托管实例数量。

ManagedInstances

获得包含由该 Utility管理的 SQL Server 实例的集合。

ManagedInstanceUnderutilizedCount

获取被低利用的SQL Server托管实例数量。

ManagedInstanceUnhealthyCount

获取SQL Server的不健康管理实例数量。

ManagedInstanceWithFilesOnOverutilizedVolumeCount

获取在过度使用卷上有文件的SQL Server托管实例数量。

ManagedInstanceWithFilesOnUnderutilizedVolumeCount

获取SQL Server中文件存放在未充分利用卷上的托管实例数量。

ManagedInstanceWithOverutilizedFileCount

获取有多个SQL Server托管实例中文件被过度利用的实例。

ManagedInstanceWithOverutilizedProcessorCount

获取在过度使用处理器上执行的SQL Server托管实例数量。

ManagedInstanceWithUnderutilizedFileCount

获取包含未充分利用文件的SQL Server托管实例数量。

ManagedInstanceWithUnderutilizedProcessorCount

获取在未充分利用处理器上执行的SQL Server托管实例数量。

MdwDatabaseName

获取或设置公用事业管理数据仓库(UMDW)数据库的名称。

MdwRetentionLengthInDaysForDaysHistory

获取或设置数据在管理Data Warehouse(MDW)历史表中保留的每日条目长度(天数)。

MdwRetentionLengthInDaysForHoursHistory

获取或设置数据在公用事业管理数据仓库(UMDW)历史表中按小时计时保留数据的天数长度。

MdwRetentionLengthInDaysForMinutesHistory

获取或设置数据在公用事业管理数据仓库(UMDW)历史表中按分钟计入时保留数据的天数长度。

Metadata

返回关于实例及其域的元数据。

(继承自 SfcInstance)
Name

获取连接的SQL Store服务器名称。

OverUtilizationOccurenceFrequency

获取或设置用于计算机在指定尾段窗口内过度利用健康状态的出现频率。

OverUtilizationTrailingWindow

获取或设置用于计算健康状态的倒计时窗口(小时)。

Parent

通过钥匙扣获取或设置实例的父节点。

(继承自 SfcInstance)
PolicyStore

获取 PolicyStore 定义 SQL Store 连接策略的对象。

Properties

返回集合实例属性。

(继承自 SfcInstance)
PropertyStorageProvider

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
SqlStoreConnection

获取或设置 SQL Store 连接

State

返回 SfcInstance 对象的状态。

(继承自 SfcInstance)
TotalStorageCapacity

获得公用事业的存储容量。

TotalStorageUtilization

获取当前使用的SQL Server工具存储量。

UnderUtilizationOccurenceFrequency

获取或设置用于计算机在指定尾段窗口内的低利用健康状态的出现频率。

UnderUtilizationTrailingWindow

获取或设置用于计算健康状态的倒计时窗口(小时)。

Urn

返回 SfcInstance 对象的统一资源名。

(继承自 SfcInstance)
UtilityName

获得公用事业控制点(UCP)名称。

方法

名称 说明
Alter()

更新SQL Server实例上的任何Utility属性变更。

AlterImpl()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
CheckObjectCreated()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
CheckObjectState()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
Connect(SqlStoreConnection)

返回 SqlStoreConnectionconnection指定为 的对象。

CreateIdentityKey()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
CreateImpl()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
CreateUtility(String, SqlStoreConnection, String, SqlSecureString)

创建一个 Utility 对象。

CreateUtility(String, SqlStoreConnection)

创建一个 Utility 对象。

Discover(ISfcDependencyDiscoveryObjectSink)

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
DropImpl()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
EnrollInstance(SqlStoreConnection, String, SqlSecureString)

Utility 参数提供的 sqlStoreConnection 连接注册对象。

EnrollInstance(SqlStoreConnection)

Utility 参数提供的 sqlStoreConnection 连接注册对象。

GetChildCollection(String)

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
GetDomain()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
GetPropertySet()

返回 SfcInstance 对象的属性集合。

(继承自 SfcInstance)
GetTypeMetadataImpl()

通过直接返回正确的TypeMetadata类来表示覆盖的域。 请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
InitializeUIPropertyState()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
IsLoginUtilityReader(SqlStoreConnection)

验证连接中使用的登录是否具有实用工具读取者角色。

IsUtilityControlPoint(SqlStoreConnection)

确定指定的服务器是否为公用事业控制点(UCP)。

MarkForDropImpl(Boolean)

返回一个表示已存物体的值。 请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
MarkRootAsConnected()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
MoveImpl(SfcInstance)

表示在实例中需要移动的新父对象。 请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
OnPropertyMetadataChanges(SfcPropertyMetadataChangedEventArgs)

每当任何 SfcInstance 元数据的有效值更新时都会调用。

(继承自 SfcInstance)
OnPropertyValueChanges(PropertyChangedEventArgs)

每当任何 SfcInstance 属性的有效值更新时都会被调用。

(继承自 SfcInstance)
PostAlter(Object)

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
PostCreate(Object)

表示创建执行结果的默认实现者。 请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
PostDrop(Object)

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
PostMove(Object)

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
PostRename(Object)

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
Refresh()

刷新 SQL Server 工具属性。

RenameImpl(SfcKey)

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
ResetKey()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
ScriptAlter()

如果基础对象被更改,则会改变其属性。

Serialize(XmlWriter)

将实例序列化为 XML。

(继承自 SfcInstance)
ToString()

返回实例Urn的字符串表示。

(继承自 SfcInstance)
UpdateUIPropertyState()

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
Validate()

表示基本子对象的验证。 请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)

活动

名称 说明
propertyChanged

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

(继承自 SfcInstance)
PropertyChanged

当属性值更改时发生。

(继承自 SfcInstance)
propertyMetadataChanged

请不要在代码中直接引用该成员。 它支持 SQL Server 基础设施。

当属性元数据值发生变化时,就会发生这种情况。

(继承自 SfcInstance)
PropertyMetadataChanged

当某个属性的元数据发生变化时,就会发生这种情况。

(继承自 SfcInstance)

显式接口实现

名称 说明
ISfcDomain.GetExecutionEngine()

会有一个新的执行引擎接口。

ISfcDomain.GetKey(IUrnFragment)

获得一个新 SfcKey 物品。

ISfcDomain.GetType(String)

获得 Type 公用事业。

ISfcDomain.GetTypeMetadata(String)

获取 SfcTypeMetadata

ISfcDomain.UseSfcStateManagement()

返回 True

ISfcDomain2.GetUrnSkeletonsFromType(Type)

获取包含URN骨架的字符串值列表。

ISfcDomainLite.DomainInstanceName

获取域名的实例名。

ISfcDomainLite.DomainName

拿到域名。

ISfcDomainLite.GetLogicalVersion()

得到一个整数值,指定逻辑版本。

ISfcHasConnection.ConnectionContext

获取连接上下文模式。

ISfcHasConnection.GetConnection()

获取 ISfcConnection

ISfcHasConnection.GetConnection(SfcObjectQueryMode)

获取 ISfcConnection

ISfcHasConnection.SetConnection(ISfcConnection)

设置 .ISfcConnection

适用于