CollectionSet 類別

定義

public sealed class CollectionSet : Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance, Microsoft.SqlServer.Management.Common.IAlterable, Microsoft.SqlServer.Management.Common.ICreatable, Microsoft.SqlServer.Management.Common.IDroppable, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcAlterable, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcCreatable, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcDroppable, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcRenamable
type CollectionSet = class
    inherit SfcInstance
    interface ISfcCreatable
    interface ICreatable
    interface ISfcDroppable
    interface IDroppable
    interface ISfcAlterable
    interface IAlterable
    interface ISfcRenamable
    interface ISfcDiscoverObject
Public NotInheritable Class CollectionSet
Inherits SfcInstance
Implements IAlterable, ICreatable, IDroppable, ISfcAlterable, ISfcCreatable, ISfcDroppable, ISfcRenamable
繼承
CollectionSet
實作

建構函式

名稱 Description
CollectionSet()

用於反序列化及工廠的預設建構器

CollectionSet 必須有一個公開的無參數建構子,才能將其作為通用型別或方法「Microsoft.」中的參數「TDcInstance」。SqlServer.Management.DataCollectionUITasks.DcTaskFormComponent TDcInstance

CollectionSet(CollectorConfigStore, String)

初始化一個 CollectionSet 的實例,給定一個 CollectorConfigStore 物件作為父物件和一個名稱

<param name=“store”> 父組 store</param><param name=“name”> 集合集合/<param 的名稱>

屬性

名稱 Description
AbstractIdentityKey (繼承來源 SfcInstance)
CollectionItems

屬於此收藏套裝的收藏品

CollectionMode

收藏模式。 CollectionSet.CollectionModes

DaysUntilExpiration

定義收集的資料應該在資料庫中保存多久

Description

收藏組的自由文字說明

Id

設定商店中集合集的 ID

IdentityKey

關鍵特性

IsRunning

如果集合集目前正在執行,則為真

IsSystem

若該集合是系統集合集合,則為真

IsTransactionPerformance

若該集合是定義的交易效能集合之一,則為真

KeyChain

回傳物件的身份路徑

(繼承來源 SfcInstance)
LoggingLevel

集合集的日誌層級。

Metadata (繼承來源 SfcInstance)
Name

收藏組名稱

Parent

物件模型階層中的父物件;CollectorConfigStore

Properties (繼承來源 SfcInstance)
PropertyStorageProvider

此屬性會回傳 ISfcPropertyStorageProvider 介面的預設 SFC 實作,子類別可覆寫以回傳另一個儲存提供者(即平面屬性清單)

(繼承來源 SfcInstance)
ProxyName

集合集用來連接目標及管理資料倉儲(Management Data Warehouse)的 SQL 代理帳號名稱

ScheduleName

集合集的 SQL 代理程式名稱。 用於「快取」集錦模式驅動集合集上傳,並以「快照」收集模式驅動 snampshot 集合

State

集合集的物件狀態

TargetName

收集資料集所從的目標名稱

UId

一個唯一能識別集合集的 GUID

Urn

在每個請求建立新的 Urn 字串並回傳。

(繼承來源 SfcInstance)

方法

名稱 Description
Alter()

在設定商店修改集合集。 只有行程、目標、代理和描述可以更新。 物品也可以被添加、掉落或修改

AlterImpl() (繼承來源 SfcInstance)
CheckObjectCreated()

當 API 要求物件建立強度高於 CheckObjectState 時,從網域呼叫

(繼承來源 SfcInstance)
CheckObjectState()

從網域呼叫以存取物件

(繼承來源 SfcInstance)
Cleanup()

此方法會清理設定/啟動/執行此集合集時的所有活動 清理任務:刪除收集、上傳工作 將集合狀態改為開箱即用設定 如果此集合集是最後一個執行中的集合,則將資料收集器設為非設定狀態 刪除所有集合集日誌

Create()

在設定庫建立一個集合集

CreateIdentityKey() (繼承來源 SfcInstance)
CreateImpl() (繼承來源 SfcInstance)
Discover(ISfcDependencyDiscoveryObjectSink) (繼承來源 SfcInstance)
Drop()

從設定庫移除 collectoin 集合

DropImpl() (繼承來源 SfcInstance)
EnumCollectionSetExecutionHistory()

取得特定收藏集的頂層歷史紀錄

EnumCollectionSetExecutionHistory(Int64)

取得給定集合集的歷史紀錄,針對特定父日誌 ID

EnumCollectionSetExecutionHistoryDetail(Int64)

取得特定集合集執行的詳細記錄(logId)

GetChildCollection(String)

在此實例中取得給定元素名稱串的子集合。

(繼承來源 SfcInstance)
GetDomain() (繼承來源 SfcInstance)
GetLastUploadTime()

完成上次成功上傳的時間

GetObjectFactory()

回傳 CollectionSet 類別的物件工廠

GetPropertySet() (繼承來源 SfcInstance)
GetTypeMetadataImpl() (繼承來源 SfcInstance)
InitializeUIPropertyState()

可從關心初始化狀態的子物件(目前為「」的動態元資料)中覆寫。啟用」屬性)

(繼承來源 SfcInstance)
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)
RunOnce()

執行一個收藏,隨需上傳一次。 將收集單一資料快照並上傳至 Management Data Warehouse。 只有當收集模式為「非快取」時才能使用。

ScriptAlter()

集合集物件的腳本 alter

Serialize(XmlWriter) (繼承來源 SfcInstance)
Start()

從集合集開始收集

Stop()

停止從運行中的集合集合收集

ToString() (繼承來源 SfcInstance)
UpdateUIPropertyState() (繼承來源 SfcInstance)
Upload()

在 Management Data Warehouse 上對收藏進行隨選上傳。 只有當收集模式是「快取」且該集合目前正在執行時才有意義。

Validate()

基本子物件驗證

(繼承來源 SfcInstance)

事件

名稱 Description
propertyChanged (繼承來源 SfcInstance)
PropertyChanged (繼承來源 SfcInstance)
propertyMetadataChanged (繼承來源 SfcInstance)
PropertyMetadataChanged (繼承來源 SfcInstance)

明確介面實作

名稱 Description
ISfcCreatable.ScriptCreate()
ISfcDiscoverObject.Discover(ISfcDependencyDiscoveryObjectSink)
ISfcDroppable.ScriptDrop()
ISfcRenamable.Rename(SfcKey)
ISfcRenamable.ScriptRename(SfcKey)

適用於