Classe NamedKey<T>

Represents the single string name key for an instance class.

Hiérarchie d'héritage

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcKey
    Microsoft.SqlServer.Management.Sdk.Sfc.NamedKey<T>

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

Syntaxe

'Déclaration
Public Class NamedKey(Of T As SfcInstance) _
    Inherits SfcKey _
    Implements IEquatable(Of NamedKey(Of T))
'Utilisation
Dim instance As NamedKey(Of T)
public class NamedKey<T> : SfcKey, IEquatable<NamedKey<T>>
where T : SfcInstance
generic<typename T>
where T : SfcInstance 
public ref class NamedKey : public SfcKey, 
    IEquatable<NamedKey<T>^>
type NamedKey<'T when 'T : SfcInstance> =  
    class 
        inherit SfcKey 
        interface IEquatable<NamedKey<'T>>
    end
JScript ne prend pas en charge les types et les méthodes génériques.

Paramètres de type

  • T
    The type of the name key for an instance.

Le type NamedKey<T> expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique NamedKey<T>() Initializes a new instance of the NamedKey<T> class.
Méthode publique NamedKey<T>(IDictionary<String, Object>) Initializes a new instance of the NamedKey<T> class from a field dictionary.
Méthode publique NamedKey<T>(String) Initializes a new instance of the NamedKey<T> class from a string.
Méthode publique NamedKey<T>(NamedKey<T>) Initializes a new instance of the NamedKey<T> class from another name key.

Haut de la page

Propriétés

  Nom Description
Propriété publique InstanceType Gets the instance type which the key represents. (remplace SfcKey.InstanceType.)
Propriété publique Name Gets the name key value.
Propriété protégée UrnName Gets the Urn level name corresponding to the instance type which the key represents.

Haut de la page

Méthodes

  Nom Description
Méthode publique Equals(Object) Compares a name key to the specified key for value of equality. (remplace SfcKey.Equals(Object).)
Méthode publique Equals(NamedKey<T>) Compares a name key to the specified key for value of equality.
Méthode publique Equals(SfcKey) Compares a name key to the key for value of equality. (remplace SfcKey.Equals(SfcKey).)
Méthode publiqueMembre statique Equals(Object, Object) Compares the two keys for value of equality.
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode Returns a hash code for the key. (remplace SfcKey.GetHashCode().)
Méthode publique GetType (hérité de Object.)
Méthode publique GetUrnFragment Returns the Urn level fragment which obtains its name from the key name property by default. (remplace SfcKey.GetUrnFragment().)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique ToString Returns the string value for the key. (remplace SfcKey.ToString().)

Haut de la page

Opérateurs

  Nom Description
Opérateur publicMembre statique Equality Indicates whether the two keys are equal.
Opérateur publicMembre statique Inequality Indicates whether the two keys are not equal.

Haut de la page

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.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Management.Sdk.Sfc