语言

CollectionSet 类

定义

public sealed class CollectionSet : Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance, Microsoft.SqlServer.Management.Common.IAlterable, Microsoft.SqlServer.Management.Common.ICreatable, Microsoft.SqlServer.Management.Common.IDroppable, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcAlterable, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcCreatable, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcDroppable, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcRenamable
type CollectionSet = class
    inherit SfcInstance
    interface ISfcCreatable
    interface ICreatable
    interface ISfcDroppable
    interface IDroppable
    interface ISfcAlterable
    interface IAlterable
    interface ISfcRenamable
    interface ISfcDiscoverObject
Public NotInheritable Class CollectionSet
Inherits SfcInstance
Implements IAlterable, ICreatable, IDroppable, ISfcAlterable, ISfcCreatable, ISfcDroppable, ISfcRenamable
继承
CollectionSet
实现

构造函数

名称 说明
CollectionSet()

用于反序列化和工厂的默认构造函数

CollectionSet 必须具有公共无参数构造函数,才能在泛型类型或方法“Microsoft”中将其用作参数“TDcInstance”。SqlServer.Management.DataCollectionUITasks.DcTaskFormComponent TDcInstance

CollectionSet(CollectorConfigStore, String)

将 CollectionSet 的实例初始化为给定 CollectorConfigStore 对象的父对象和名称

<param name=“store”>父配置存储</param param><name=“name”>集合集</param 的名称>

属性

名称 说明
AbstractIdentityKey (继承自 SfcInstance)
CollectionItems

属于此集合集的集合项

CollectionMode

集合集的收集模式。 CollectionSet.CollectionModes

DaysUntilExpiration

定义应将收集的数据保存在存储库中的时长

Description

集合集的自由文本说明

Id

配置存储中集合集的 ID

IdentityKey

Key 属性

IsRunning

如此 如果集合集当前正在执行

IsSystem

如此 如果集是系统集合集

IsTransactionPerformance

如此 如果集是定义的事务性能收集集之一

KeyChain

返回对象的标识路径

(继承自 SfcInstance)
LoggingLevel

收集集的日志记录级别。

Metadata (继承自 SfcInstance)
Name

集合集名称

Parent

对象模型层次结构中的父对象;CollectorConfigStore

Properties (继承自 SfcInstance)
PropertyStorageProvider

此属性返回 ISfcPropertyStorageProvider 接口的默认实现,可以在子类中重写它以返回另一个存储提供程序(即平面属性列表)

(继承自 SfcInstance)
ProxyName

收集集用来连接到目标和管理Data Warehouse的 SQL 代理帐户的名称

ScheduleName

集合集的 SQL 代理计划的名称。 用于在“缓存”排序规则模式下驱动收集集上传,并在“快照”收集模式下驱动 snampshot 集合

State

集合集的对象状态

TargetName

收集组从中收集数据的目标的名称

UId

标识集合集的 GUID

Urn

在每个请求上创建新的 Urn 字符串并返回它。

(继承自 SfcInstance)

方法

名称 说明
Alter()

更改配置存储上的集合集。 只能更新计划、目标、代理和说明。 还可以添加已删除或更改的项目

AlterImpl() (继承自 SfcInstance)
CheckObjectCreated()

当 API 要求对象的创建比 CheckObjectState 更强时从域调用

(继承自 SfcInstance)
CheckObjectState()

从域中调用以访问对象

(继承自 SfcInstance)
Cleanup()

此方法清理在配置/启动/运行此集合集清理任务时完成的所有活动:删除收集,将作业更改集的状态上传到现成的设置,如果此集合集是最后一个正在运行的集“删除所有收集集日志”,请将作业的状态更改为未配置的状态

Create()

在配置存储上创建集合集

CreateIdentityKey() (继承自 SfcInstance)
CreateImpl() (继承自 SfcInstance)
Discover(ISfcDependencyDiscoveryObjectSink) (继承自 SfcInstance)
Drop()

从配置存储中删除 collectoin 集

DropImpl() (继承自 SfcInstance)
EnumCollectionSetExecutionHistory()

获取给定集合集的顶级历史记录

EnumCollectionSetExecutionHistory(Int64)

获取给定父日志 ID 的给定集合集的历史记录

EnumCollectionSetExecutionHistoryDetail(Int64)

获取给定收集集执行的详细信息记录(logId)

GetChildCollection(String)

获取此实例中给定元素名称字符串的子集合。

(继承自 SfcInstance)
GetDomain() (继承自 SfcInstance)
GetLastUploadTime()

获取上次成功上传完成的时间

GetObjectFactory()

返回 CollectionSet 类的对象工厂

GetPropertySet() (继承自 SfcInstance)
GetTypeMetadataImpl() (继承自 SfcInstance)
InitializeUIPropertyState()

可重写那些关心初始化其状态的子对象(当前为“动态元数据”。Enabled“ 属性)

(继承自 SfcInstance)
MarkForDropImpl(Boolean) (继承自 SfcInstance)
MarkRootAsConnected() (继承自 SfcInstance)
MoveImpl(SfcInstance) (继承自 SfcInstance)
OnPropertyMetadataChanges(SfcPropertyMetadataChangedEventArgs) (继承自 SfcInstance)
OnPropertyValueChanges(PropertyChangedEventArgs) (继承自 SfcInstance)
PostAlter(Object) (继承自 SfcInstance)
PostCreate(Object) (继承自 SfcInstance)
PostDrop(Object) (继承自 SfcInstance)
PostMove(Object) (继承自 SfcInstance)
PostRename(Object) (继承自 SfcInstance)
Refresh()

通过从服务器读取对象属性来刷新这些属性

(继承自 SfcInstance)
Rename(String)
RenameImpl(SfcKey) (继承自 SfcInstance)
ResetKey() (继承自 SfcInstance)
RunOnce()

按需运行集合并上传一次。 将收集和上传到管理Data Warehouse的单个数据快照。 仅当集合模式为“NonCached”时,才能使用。

ScriptAlter()

集合集对象的脚本更改

Serialize(XmlWriter) (继承自 SfcInstance)
Start()

从集合集中启动集合

Stop()

从正在运行的集合集中停止收集

ToString() (继承自 SfcInstance)
UpdateUIPropertyState() (继承自 SfcInstance)
Upload()

按需上传集合集到管理Data Warehouse。 仅当集合模式为“缓存”且集当前正在运行时才有意义。

Validate()

基本子对象的验证

(继承自 SfcInstance)

活动

名称 说明
propertyChanged (继承自 SfcInstance)
PropertyChanged (继承自 SfcInstance)
propertyMetadataChanged (继承自 SfcInstance)
PropertyMetadataChanged (继承自 SfcInstance)

显式接口实现

名称 说明
ISfcCreatable.ScriptCreate()
ISfcDiscoverObject.Discover(ISfcDependencyDiscoveryObjectSink)
ISfcDroppable.ScriptDrop()
ISfcRenamable.Rename(SfcKey)
ISfcRenamable.ScriptRename(SfcKey)

适用于