CollectionItem 类

The CollectionItem class creates an instance of a collection item.

继承层次结构

System. . :: . .Object
  SfcInstance
    Microsoft.SqlServer.Management.Collector..::..CollectionItem

命名空间:  Microsoft.SqlServer.Management.Collector
程序集:  Microsoft.SqlServer.Management.Collector(在 Microsoft.SqlServer.Management.Collector.dll 中)

语法

声明
Public NotInheritable Class CollectionItem _
    Inherits SfcInstance _
    Implements ISfcAlterable, IAlterable, ISfcRenamable, IRenamable,  _
    IMarkForDrop
用法
Dim instance As CollectionItem
public sealed class CollectionItem : SfcInstance, 
    ISfcAlterable, IAlterable, ISfcRenamable, IRenamable, IMarkForDrop
public ref class CollectionItem sealed : public SfcInstance, 
    ISfcAlterable, IAlterable, ISfcRenamable, IRenamable, IMarkForDrop
[<SealedAttribute>]
type CollectionItem =  
    class
        inherit SfcInstance
        interface ISfcAlterable
        interface IAlterable
        interface ISfcRenamable
        interface IRenamable
        interface IMarkForDrop
    end
public final class CollectionItem extends SfcInstance implements ISfcAlterable, IAlterable, ISfcRenamable, IRenamable, IMarkForDrop

CollectionItem 类型公开以下成员。

构造函数

  名称 说明
公共方法 CollectionItem Creates an instance of a collection item given the collection set name and an item name.

页首

属性

  名称 说明
受保护属性 AbstractIdentityKey (从 SfcInstance 继承。)
公共属性 CollectionFrequency Gets or sets the collection frequency for this item if the collection set is running in CollectionMode = "continuous".
公共属性 Id Gets the collection item Id.
公共属性 IdentityKey Gets the identity key for the collection item.
公共属性 Metadata (从 SfcInstance 继承。)
公共属性 Name Gets or sets the collection item name.
公共属性 Parameters Gets or sets collection item parameters.
公共属性 Parent Gets or sets the parent object in the object model hierarchy.
公共属性 Properties (从 SfcInstance 继承。)
受保护属性 PropertyStorageProvider (从 SfcInstance 继承。)
受保护属性 State (从 SfcInstance 继承。)
公共属性 TypeName Gets or sets the name of the collector type that the collection item implements.
公共属性 Urn (从 SfcInstance 继承。)

页首

方法

  名称 说明
公共方法 Alter Alters a collection item by applying the changes to the configuration store.
受保护方法 AlterImpl (从 SfcInstance 继承。)
受保护方法 CheckObjectCreated (从 SfcInstance 继承。)
受保护方法 CheckObjectState (从 SfcInstance 继承。)
受保护方法 CreateIdentityKey (从 SfcInstance 继承。)
受保护方法 CreateImpl (从 SfcInstance 继承。)
公共方法 Discover This method is for internal use only. (覆盖 SfcInstanceDiscover(ISfcDependencyDiscoveryObjectSink)。)
受保护方法 DropImpl (从 SfcInstance 继承。)
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
受保护方法 GetChildCollection (从 SfcInstance 继承。)
公共方法 GetDomain (从 SfcInstance 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法静态成员 GetObjectFactory Instantiates an instance of the constructor used for collection items.
公共方法 GetPropertySet (从 SfcInstance 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 GetTypeMetadataImpl (从 SfcInstance 继承。)
受保护方法 InitializeUIPropertyState (从 SfcInstance 继承。)
公共方法 MarkForDrop This method marks a collection item for dropping if the collection item has been changed.
受保护方法 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 Renames a collection item.
受保护方法 RenameImpl (从 SfcInstance 继承。)
受保护方法 ResetKey (从 SfcInstance 继承。)
公共方法 Serialize (从 SfcInstance 继承。)
公共方法 ToString (从 SfcInstance 继承。)
受保护方法 UpdateUIPropertyState (从 SfcInstance 继承。)
受保护方法 Validate (从 SfcInstance 继承。)

页首

事件

  名称 说明
受保护事件 propertyChanged (从 SfcInstance 继承。)
公共事件 PropertyChanged (从 SfcInstance 继承。)
受保护事件 propertyMetadataChanged (从 SfcInstance 继承。)
公共事件 PropertyMetadataChanged (从 SfcInstance 继承。)

页首

显式接口实现

  名称 说明
显式接口实现私有方法 ISfcRenamableRename This method is for internal use only.
显式接口实现私有方法 ISfcAlterableScriptAlter This method is for internal use only.
显式接口实现私有方法 ISfcRenamableScriptRename This method is for internal use only.

页首

注释

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。