CollectionSet 类
CollectionSet 类派生自 SFC::SfcInstanceBase 并实现 SFC::ICreatable、SFC::IDropable 和 SFC::IAlterable。
继承层次结构
System. . :: . .Object
Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcInstance
Microsoft.SqlServer.Management.Collector..::..CollectionSet
命名空间: Microsoft.SqlServer.Management.Collector
程序集: Microsoft.SqlServer.Management.Collector(在 Microsoft.SqlServer.Management.Collector.dll 中)
语法
声明
Public NotInheritable Class CollectionSet _
Inherits SfcInstance _
Implements ISfcCreatable, ICreatable, ISfcDroppable, IDroppable, _
ISfcAlterable, IAlterable, ISfcRenamable, ISfcDiscoverObject
用法
Dim instance As CollectionSet
public sealed class CollectionSet : SfcInstance,
ISfcCreatable, ICreatable, ISfcDroppable, IDroppable, ISfcAlterable,
IAlterable, ISfcRenamable, ISfcDiscoverObject
public ref class CollectionSet sealed : public SfcInstance,
ISfcCreatable, ICreatable, ISfcDroppable, IDroppable, ISfcAlterable,
IAlterable, ISfcRenamable, ISfcDiscoverObject
[<SealedAttribute>]
type CollectionSet =
class
inherit SfcInstance
interface ISfcCreatable
interface ICreatable
interface ISfcDroppable
interface IDroppable
interface ISfcAlterable
interface IAlterable
interface ISfcRenamable
interface ISfcDiscoverObject
end
public final class CollectionSet extends SfcInstance implements ISfcCreatable, ICreatable, ISfcDroppable, IDroppable, ISfcAlterable, IAlterable, ISfcRenamable, ISfcDiscoverObject
CollectionSet 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
CollectionSet() () () () | 实例化收集组对象。 |
![]() |
CollectionSet(CollectorConfigStore, String) | 在给定 CollectorConfigStore 对象作为父对象以及收集组名称的情况下,实例化 CollectionSet 的实例。 |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
AbstractIdentityKey | (从 SfcInstance 继承。) |
![]() |
CollectionItems | 获取收集组中的收集项。 |
![]() |
CollectionMode | 获取或设置收集组的收集模式。 |
![]() |
DaysUntilExpiration | 获取或设置所收集的数据保存在管理数据仓库中的天数。 |
![]() |
Description | 获取或设置收集组的说明。 |
![]() |
Id | 获取收集组的本地 ID。 |
![]() |
IdentityKey | 获取收集组的标识键。 |
![]() |
IsRunning | 获取 Boolean 属性值,该值指示收集组是否正在运行。 |
![]() |
IsSystem | 获取 Boolean 属性值,该值指示收集组是否为系统收集组。 |
![]() |
LoggingLevel | 获取或设置收集组的日志记录级别。 |
![]() |
Metadata | (从 SfcInstance 继承。) |
![]() |
Name | 获取或设置收集组的名称。 |
![]() |
Parent | 获取或设置此收集组所属的父存储区。 |
![]() |
Properties | (从 SfcInstance 继承。) |
![]() |
PropertyStorageProvider | (从 SfcInstance 继承。) |
![]() |
ProxyName | 获取或设置用于执行收集组的 SQL Server 代理的代理帐户名称。 |
![]() |
ScheduleName | 获取或设置与收集组关联的 SQL Server 代理计划的名称。 |
![]() |
State | 获取收集组的状态。 |
![]() |
TargetName | 获取或设置收集组将从中收集数据的目标的名称。 |
![]() |
UId | 获取或设置收集组的全局唯一 ID。 |
![]() |
Urn | (从 SfcInstance 继承。) |
页首
方法
页首
事件
名称 | 说明 | |
---|---|---|
![]() |
propertyChanged | (从 SfcInstance 继承。) |
![]() |
PropertyChanged | (从 SfcInstance 继承。) |
![]() |
propertyMetadataChanged | (从 SfcInstance 继承。) |
![]() |
PropertyMetadataChanged | (从 SfcInstance 继承。) |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
![]() ![]() |
ISfcDiscoverObject. . :: . .Discover | 允许对象通过传递的接收器指示依赖项发现请求的关系。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 |
![]() ![]() |
ISfcRenamable. . :: . .Rename | 将此对象重命名为指定的键并更新该存储。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 |
![]() ![]() |
ISfcCreatable. . :: . .ScriptCreate | 生成要创建此对象并以当前对象状态存储的脚本。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 |
![]() ![]() |
ISfcDroppable. . :: . .ScriptDrop | 生成要从存储中删除此对象的脚本。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 |
![]() ![]() |
ISfcRenamable. . :: . .ScriptRename | 生成要将此对象重命名为指定的键的脚本。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 |
页首
注释
This class is used for collection sets.
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。