Freigeben über


CollectionItem-Klasse

The CollectionItem class creates an instance of a collection item.

Vererbungshierarchie

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
    Microsoft.SqlServer.Management.Collector.CollectionItem

Namespace:  Microsoft.SqlServer.Management.Collector
Assembly:  Microsoft.SqlServer.Management.Collector (in Microsoft.SqlServer.Management.Collector.dll)

Syntax

'Declaration
Public NotInheritable Class CollectionItem _
    Inherits SfcInstance _
    Implements ISfcAlterable, IAlterable, ISfcRenamable, IRenamable,  _
    IMarkForDrop
'Usage
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

Der CollectionItem-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode CollectionItem Creates an instance of a collection item given the collection set name and an item name.

Zum Anfang

Eigenschaften

  Name Beschreibung
Geschützte Eigenschaft AbstractIdentityKey Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft CollectionFrequency Gets or sets the collection frequency for this item if the collection set is running in CollectionMode = "continuous".
Öffentliche Eigenschaft Id Gets the collection item Id.
Öffentliche Eigenschaft IdentityKey Gets the identity key for the collection item.
Öffentliche Eigenschaft Metadata Returns metadata about the instance and its domain. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft Name Gets or sets the collection item name.
Öffentliche Eigenschaft Parameters Gets or sets collection item parameters.
Öffentliche Eigenschaft Parent Gets or sets the parent object in the object model hierarchy.
Öffentliche Eigenschaft Properties Returns a collection instance properties. (Geerbt von SfcInstance.)
Geschützte Eigenschaft State Returns the state of the SfcInstance object. (Geerbt von SfcInstance.)
Öffentliche Eigenschaft TypeName Gets or sets the name of the collector type that the collection item implements.
Öffentliche Eigenschaft Urn Returns the uniform resource name of the SfcInstance object. (Geerbt von SfcInstance.)

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Alter Alters a collection item by applying the changes to the configuration store.
Geschützte Methode CreateIdentityKey Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode Discover This method is for internal use only. (Überschreibt SfcInstance.Discover(ISfcDependencyDiscoveryObjectSink).)
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode GetChildCollection Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode GetDomain Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche MethodeStatisches Element GetObjectFactory Instantiates an instance of the constructor used for collection items.
Öffentliche Methode GetPropertySet Returns the set of properties for the SfcInstance object. (Geerbt von SfcInstance.)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode GetTypeMetadataImpl Indicates the domains that override by returning the right TypeMetadata class directly. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Geschützte Methode InitializeUIPropertyState Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode MarkForDrop This method marks a collection item for dropping if the collection item has been changed.
Geschützte Methode OnPropertyMetadataChanges Invoked whenever the effective value of any SfcInstance metadata is updated. (Geerbt von SfcInstance.)
Geschützte Methode OnPropertyValueChanges Invoked whenever the effective value of any SfcInstance property is updated. (Geerbt von SfcInstance.)
Öffentliche Methode Refresh Refreshes the object's properties by reading them from the server. (Geerbt von SfcInstance.)
Öffentliche Methode Rename Renames a collection item.
Geschützte Methode ResetKey Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcInstance.)
Öffentliche Methode Serialize Serializes the instance to XML. (Geerbt von SfcInstance.)
Öffentliche Methode ToString Returns a string representation of the instance Urn. (Geerbt von SfcInstance.)

Zum Anfang

Ereignisse

  Name Beschreibung
Öffentliches Ereignis PropertyChanged CLS-compliant event for property changes. (Geerbt von SfcInstance.)
Öffentliches Ereignis PropertyMetadataChanged CLS-compliant event for property metadata changes. (Geerbt von SfcInstance.)

Zum Anfang

Explizite Schnittstellenimplementierungen

  Name Beschreibung
Explizite SchnittstellenimplementierungPrivate Methode ISfcAlterable.ScriptAlter This method is for internal use only.
Explizite SchnittstellenimplementierungPrivate Methode ISfcRenamable.Rename This method is for internal use only.
Explizite SchnittstellenimplementierungPrivate Methode ISfcRenamable.ScriptRename This method is for internal use only.

Zum Anfang

Hinweise

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Management.Collector-Namespace