语言

CollectionItem 类

定义

public sealed class CollectionItem : Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance, Microsoft.SqlServer.Management.Common.IAlterable, Microsoft.SqlServer.Management.Common.IMarkForDrop, Microsoft.SqlServer.Management.Common.IRenamable, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcAlterable, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcRenamable
type CollectionItem = class
    inherit SfcInstance
    interface ISfcAlterable
    interface IAlterable
    interface ISfcRenamable
    interface IRenamable
    interface IMarkForDrop
Public NotInheritable Class CollectionItem
Inherits SfcInstance
Implements IAlterable, IMarkForDrop, IRenamable, ISfcAlterable, ISfcRenamable
继承
CollectionItem
实现

构造函数

名称 说明
CollectionItem(CollectionSet, String)

在给定集合集和项名称的情况下创建集合项的实例

<param name=“set”>父集合集</param param><name=“name”>集合项</param 的名称>

属性

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

如果集合在 CollectionMode“continuous”中运行,则此项的收集频率

Id

集合项 ID

IdentityKey

Key 属性

KeyChain

返回对象的标识路径

(继承自 SfcInstance)
Metadata (继承自 SfcInstance)
Name

集合项名称

Parameters

表示此集合项的特定参数的 xml 片段。 它必须符合此项实现的收集器类型的架构

Parent

om 层次结构中的父对象;CollectionSet

Properties (继承自 SfcInstance)
PropertyStorageProvider

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

(继承自 SfcInstance)
State (继承自 SfcInstance)
TypeName

此收集项实现的收集器类型名称

Urn

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

(继承自 SfcInstance)

方法

名称 说明
Alter()

通过将更改应用于配置存储来更改集合项

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

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

(继承自 SfcInstance)
CheckObjectState()

从域中调用以访问对象

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

目前未使用。 父母应该处理这一点的发现。

DropImpl() (继承自 SfcInstance)
GetChildCollection(String)

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

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

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

(继承自 SfcInstance)
MarkForDrop(Boolean)
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)
Serialize(XmlWriter) (继承自 SfcInstance)
ToString() (继承自 SfcInstance)
UpdateUIPropertyState() (继承自 SfcInstance)
Validate()

基本子对象的验证

(继承自 SfcInstance)

活动

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

显式接口实现

名称 说明
ISfcAlterable.ScriptAlter()
ISfcRenamable.Rename(SfcKey)
ISfcRenamable.ScriptRename(SfcKey)

适用于