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 继承。)

页首

方法

  名称 说明
公共方法 Alter 修改配置存储区中的收集组信息。
受保护方法 AlterImpl (从 SfcInstance 继承。)
受保护方法 CheckObjectCreated (从 SfcInstance 继承。)
受保护方法 CheckObjectState (从 SfcInstance 继承。)
公共方法 Create 创建收集组。
受保护方法 CreateIdentityKey (从 SfcInstance 继承。)
受保护方法 CreateImpl (从 SfcInstance 继承。)
公共方法 Discover (从 SfcInstance 继承。)
公共方法 Drop 删除收集组。
受保护方法 DropImpl (从 SfcInstance 继承。)
公共方法 EnumCollectionSetExecutionHistory() () () () 获取特定收集组的历史记录的枚举器。
公共方法 EnumCollectionSetExecutionHistory(Int64) 此方法仅供内部使用。
公共方法 EnumCollectionSetExecutionHistoryDetail 此方法仅供内部使用。
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
受保护方法 GetChildCollection (从 SfcInstance 继承。)
公共方法 GetDomain (从 SfcInstance 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetLastUploadTime 获取上载收集组数据的最后时间。
公共方法静态成员 GetObjectFactory 获取 [CollectorConfigStore] 对象的对象工厂构造函数。
公共方法 GetPropertySet (从 SfcInstance 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 GetTypeMetadataImpl (从 SfcInstance 继承。)
受保护方法 InitializeUIPropertyState (从 SfcInstance 继承。)
受保护方法 MarkForDropImpl (从 SfcInstance 继承。)
受保护方法 MarkRootAsConnected (从 SfcInstance 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
受保护方法 MoveImpl (从 SfcInstance 继承。)
受保护方法 OnPropertyMetadataChanges (从 SfcInstance 继承。)
受保护方法 OnPropertyValueChanges (从 SfcInstance 继承。)
受保护方法 PostAlter (从 SfcInstance 继承。)
受保护方法 PostCreate (从 SfcInstance 继承。)
受保护方法 PostDrop (从 SfcInstance 继承。)
受保护方法 PostMove (从 SfcInstance 继承。)
受保护方法 PostRename (从 SfcInstance 继承。)
公共方法 Refresh (从 SfcInstance 继承。)
公共方法 Rename 重命名收集组。
受保护方法 RenameImpl (从 SfcInstance 继承。)
受保护方法 ResetKey (从 SfcInstance 继承。)
公共方法 RunOnce 指定要运行一次收集组。
公共方法 ScriptAlter 此方法仅供内部使用。
公共方法 Serialize (从 SfcInstance 继承。)
公共方法 Start 启动收集组。
公共方法 Stop 停止收集组。
公共方法 ToString (从 SfcInstance 继承。)
受保护方法 UpdateUIPropertyState (从 SfcInstance 继承。)
公共方法 Upload 按需上载收集组。
受保护方法 Validate (从 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) 成员都是线程安全的。不保证所有实例成员都是线程安全的。