CollectionSet 類別
The CollectionSet class is derived from SFC::SfcInstanceBase and implements SFC::ICreatable, SFC::IDropable, and SFC::IAlterable.
繼承階層
System.Object
Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
Microsoft.SqlServer.Management.Collector.CollectionSet
命名空間: Microsoft.SqlServer.Management.Collector
組件: Microsoft.SqlServer.Management.Collector (在 Microsoft.SqlServer.Management.Collector.dll 中)
語法
'宣告
Public NotInheritable Class CollectionSet _
Inherits SfcInstance _
Implements ISfcCreatable, ICreatable, ISfcDroppable, IDroppable, _
ISfcAlterable, IAlterable, ISfcRenamable, ISfcDiscoverObject
'用途
Dim instance As CollectionSet
public sealed class CollectionSet : SfcInstance,
ISfcCreatable, ICreatable, ISfcDroppable, IDroppable, ISfcAlterable,
IAlterable, ISfcRenamable, ISfcDiscoverObject
public ref class CollectionSet sealed : public SfcInstance,
ISfcCreatable, ICreatable, ISfcDroppable, IDroppable, ISfcAlterable,
IAlterable, ISfcRenamable, ISfcDiscoverObject
[<SealedAttribute>]
type CollectionSet =
class
inherit SfcInstance
interface ISfcCreatable
interface ICreatable
interface ISfcDroppable
interface IDroppable
interface ISfcAlterable
interface IAlterable
interface ISfcRenamable
interface ISfcDiscoverObject
end
public final class CollectionSet extends SfcInstance implements ISfcCreatable, ICreatable, ISfcDroppable, IDroppable, ISfcAlterable, IAlterable, ISfcRenamable, ISfcDiscoverObject
CollectionSet 型別公開下列成員。
建構函式
名稱 | 說明 | |
---|---|---|
CollectionSet() | Instantiates a collection set object. | |
CollectionSet(CollectorConfigStore, String) | Initialize an instance of a CollectionSet given a CollectorConfigStore object as a parent and a collection set name. |
上層
屬性
名稱 | 說明 | |
---|---|---|
AbstractIdentityKey | 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) | |
CollectionItems | Gets the collection items in a collection set. | |
CollectionMode | Gets or sets the collection mode for the collection set. | |
DaysUntilExpiration | Gets or sets the number of days that the collected data is saved in the management data warehouse. | |
Description | Gets or sets the description of the collection set. | |
Id | Gets the local ID for the collection set. | |
IdentityKey | Gets the identity key for the collection set. | |
IsRunning | Gets the Boolean property value that indicates whether or not the collection set is running. | |
IsSystem | Gets the Boolean property value that indicates whether or the collection set is a system collection set. | |
LoggingLevel | Gets or sets the logging level for the collection set. | |
Metadata | Returns metadata about the instance and its domain. (繼承自 SfcInstance。) | |
Name | Gets or sets the name of the collection set. | |
Parent | Gets or sets the parent store that this collection set belongs to. | |
Properties | Returns a collection instance properties. (繼承自 SfcInstance。) | |
ProxyName | Gets or sets the name of the SQL Server Agent proxy account under which the collection set executes. | |
ScheduleName | Gets or sets the name of the SQL Server Agent schedule that is associated to the collection set. | |
State | Gets the state of the collection set. | |
TargetName | Gets or sets the name of the target that the collection set will collect data from. | |
UId | Gets or sets the globally unique ID for the collection set. | |
Urn | Returns the uniform resource name of the SfcInstance object. (繼承自 SfcInstance。) |
上層
方法
名稱 | 說明 | |
---|---|---|
Alter | Alter collection set information in the configuration store. | |
Create | Creates a collection set. | |
CreateIdentityKey | 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) | |
Discover | 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) | |
Drop | Drops a collection set. | |
EnumCollectionSetExecutionHistory() | An enumerator that gets the history records for specific collection set. | |
EnumCollectionSetExecutionHistory(Int64) | This method is for internal use only. | |
EnumCollectionSetExecutionHistoryDetail | This method is for internal use only. | |
Equals | (繼承自 Object。) | |
GetChildCollection | 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) | |
GetDomain | 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) | |
GetHashCode | (繼承自 Object。) | |
GetLastUploadTime | Gets the last time that collection set data was uploaded. | |
GetObjectFactory | Gets the object factory constructor for the [CollectorConfigStore] object. | |
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。) | |
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 set. | |
ResetKey | 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。) | |
RunOnce | Specifies the collection set is to be run once. | |
ScriptAlter | This method is for internal use only. | |
Serialize | Serializes the instance to XML. (繼承自 SfcInstance。) | |
Start | Starts a collection set. | |
Stop | Stops a collection set. | |
ToString | Returns a string representation of the instance Urn. (繼承自 SfcInstance。) | |
Upload | Uploads a collection set on demand. |
上層
事件
名稱 | 說明 | |
---|---|---|
PropertyChanged | CLS-compliant event for property changes. (繼承自 SfcInstance。) | |
PropertyMetadataChanged | CLS-compliant event for property metadata changes. (繼承自 SfcInstance。) |
上層
明確 繼承 實作
名稱 | 說明 | |
---|---|---|
ISfcCreatable.ScriptCreate | Produces the script to create this object to storage in its current state. Do not reference this member directly in your code. It supports the SQL Server infrastructure. | |
ISfcDiscoverObject.Discover | Allows the object to indicate relationships for dependency discovery requests via the passed sink. Do not reference this member directly in your code. It supports the SQL Server infrastructure. | |
ISfcDroppable.ScriptDrop | Produces the script to drop this object from storage. Do not reference this member directly in your code. It supports the SQL Server infrastructure. | |
ISfcRenamable.Rename | Renames this object to the specified key and updates the storage. Do not reference this member directly in your code. It supports the SQL Server infrastructure. | |
ISfcRenamable.ScriptRename | Produces the script to rename this object to the specified key. Do not reference this member directly in your code. It supports the SQL Server infrastructure. |
上層
備註
This class is used for collection sets.
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。