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) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)