The CollectionItem class creates an instance of a collection item.
继承层次结构
System.Object
Microsoft.SqlServer.Management.Sdk.Sfc.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 | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 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 | Returns metadata about the instance and its ___domain. (从 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 | Returns a collection instance properties. (从 SfcInstance 继承。) |
![]() |
State | Returns the state of the SfcInstance object. (从 SfcInstance 继承。) |
![]() |
TypeName | Gets or sets the name of the collector type that the collection item implements. |
![]() |
Urn | Returns the uniform resource name of the SfcInstance object. (从 SfcInstance 继承。) |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
Alter | Alters a collection item by applying the changes to the configuration store. |
![]() |
CreateIdentityKey | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) |
![]() |
Discover | This method is for internal use only. (覆盖 SfcInstance.Discover(ISfcDependencyDiscoveryObjectSink)。) |
![]() |
Equals | (从 Object 继承。) |
![]() |
GetChildCollection | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) |
![]() |
GetDomain | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) |
![]() |
GetHashCode | (从 Object 继承。) |
![]() ![]() |
GetObjectFactory | Instantiates an instance of the constructor used for collection items. |
![]() |
GetPropertySet | Returns the set of properties for the SfcInstance object. (从 SfcInstance 继承。) |
![]() |
GetType | (从 Object 继承。) |
![]() |
GetTypeMetadataImpl | Indicates the domains that override by returning the right TypeMetadata class directly. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) |
![]() |
InitializeUIPropertyState | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) |
![]() |
MarkForDrop | This method marks a collection item for dropping if the collection item has been changed. |
![]() |
OnPropertyMetadataChanges | Invoked whenever the effective value of any SfcInstance metadata is updated. (从 SfcInstance 继承。) |
![]() |
OnPropertyValueChanges | Invoked whenever the effective value of any SfcInstance property is updated. (从 SfcInstance 继承。) |
![]() |
Refresh | Refreshes the object's properties by reading them from the server. (从 SfcInstance 继承。) |
![]() |
Rename | Renames a collection item. |
![]() |
ResetKey | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) |
![]() |
Serialize | Serializes the instance to XML. (从 SfcInstance 继承。) |
![]() |
ToString | Returns a string representation of the instance Urn. (从 SfcInstance 继承。) |
页首
事件
名称 | 说明 | |
---|---|---|
![]() |
PropertyChanged | CLS-compliant event for property changes. (从 SfcInstance 继承。) |
![]() |
PropertyMetadataChanged | CLS-compliant event for property metadata changes. (从 SfcInstance 继承。) |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
![]() ![]() |
ISfcAlterable.ScriptAlter | This method is for internal use only. |
![]() ![]() |
ISfcRenamable.Rename | This method is for internal use only. |
![]() ![]() |
ISfcRenamable.ScriptRename | 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) 成员都是线程安全的。不保证所有实例成员都是线程安全的。