Partager via


Classe CollectionItem.Key

The CollectionItem..::..Key class inherits from SfcAbstractKey and is used for identification key operations.

Hiérarchie d'héritage

System. . :: . .Object
  Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcKey
    Microsoft.SqlServer.Management.Collector..::..CollectionItem..::..Key

Espace de noms :  Microsoft.SqlServer.Management.Collector
Assembly :  Microsoft.SqlServer.Management.Collector (en Microsoft.SqlServer.Management.Collector.dll)

Syntaxe

'Déclaration
Public Class Key _
    Inherits SfcKey
'Utilisation
Dim instance As CollectionItem.Key
public class Key : SfcKey
public ref class Key : public SfcKey
type Key =  
    class
        inherit SfcKey
    end
public class Key extends SfcKey

Le type CollectionItem..::..Key expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique CollectionItem. . :: . .Key(String) Creates an instance of a key given the key name.
Méthode publique CollectionItem. . :: . .Key(CollectionItem. . :: . .Key) Creates an instance of a [T:][Microsoft.SqlServer.Management.Collector.CollectionItem.Key] object.

Haut de la page

Propriétés

  Nom Description
Propriété publique Name Gets or sets the key name.

Haut de la page

Méthodes

  Nom Description
Méthode publique Equals(SfcKey) Instantiates an instance of the [T:][Microsoft.SqlServer.Management.Collector.CollectionItem.Key.Equals] class that is used for boolean operations. (remplace SfcKey. . :: . .Equals(SfcKey).)
Méthode publique Equals(Object) Performs a boolean operation to determine if the object passed as a parameter is a key (remplace SfcKey. . :: . .Equals(Object).)
Méthode publique Equals(Object, Object) Does a boolean comparison of two objects passed as parameters.
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode Gets the hash code for a key. (remplace SfcKey. . :: . .GetHashCode() () () ().)
Méthode publique GetType (hérité de Object.)
Méthode publique GetUrnFragment Gets a urn fragment. (remplace SfcKey. . :: . .GetUrnFragment() () () ().)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique ToString Gets a string representation of the key for the purpose of a default comparison. (remplace SfcKey. . :: . .ToString() () () ().)

Haut de la page

Opérateurs

  Nom Description
Opérateur publicMembre statique Equality(Object, CollectionItem. . :: . .Key) Does a boolean equality comparison between the object sent as a parameter and the right hand side of the key.
Opérateur publicMembre statique Equality(CollectionItem. . :: . .Key, CollectionItem. . :: . .Key) Does a boolean equality comparision between the left hand side of the key and the right hand side of the key.
Opérateur publicMembre statique Equality(CollectionItem. . :: . .Key, Object) Does a boolean equality comparision between the object sent as a parameter and the left hand side of the key.
Opérateur publicMembre statique Inequality(Object, CollectionItem. . :: . .Key) Does a boolean inequality comparision between the object sent as a parameter and the right hand side of the key.
Opérateur publicMembre statique Inequality(CollectionItem. . :: . .Key, CollectionItem. . :: . .Key) Does a boolean inequality comparision between the left hand side of the key and the right hand side of the key.
Opérateur publicMembre statique Inequality(CollectionItem. . :: . .Key, Object) Does a boolean inequality comparision between the object sent as a parameter and the left hand side of the key.

Haut de la page

Champs

  Nom Description
Champ public name Declares the name variable.

Haut de la page

Notes

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

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.