Freigeben über


NamedKey<T>-Klasse

Represents the single string name key for an instance class.

Vererbungshierarchie

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

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Public Class NamedKey(Of T As SfcInstance) _
    Inherits SfcKey _
    Implements IEquatable(Of NamedKey(Of T))
'Usage
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 bietet keine Unterstützung für die Verwendung generischer Typen und Methoden.

Typparameter

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

Der NamedKey<T>-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode NamedKey<T>() Initializes a new instance of the NamedKey<T> class.
Öffentliche Methode NamedKey<T>(IDictionary<String, Object>) Initializes a new instance of the NamedKey<T> class from a field dictionary.
Öffentliche Methode NamedKey<T>(String) Initializes a new instance of the NamedKey<T> class from a string.
Öffentliche Methode NamedKey<T>(NamedKey<T>) Initializes a new instance of the NamedKey<T> class from another name key.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft InstanceType Gets the instance type which the key represents. (Überschreibt SfcKey.InstanceType.)
Öffentliche Eigenschaft Name Gets the name key value.
Geschützte Eigenschaft UrnName Gets the Urn level name corresponding to the instance type which the key represents.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Equals(Object) Compares a name key to the specified key for value of equality. (Überschreibt SfcKey.Equals(Object).)
Öffentliche Methode Equals(NamedKey<T>) Compares a name key to the specified key for value of equality.
Öffentliche Methode Equals(SfcKey) Compares a name key to the key for value of equality. (Überschreibt SfcKey.Equals(SfcKey).)
Öffentliche MethodeStatisches Element Equals(Object, Object) Compares the two keys for value of equality.
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode GetHashCode Returns a hash code for the key. (Überschreibt SfcKey.GetHashCode().)
Öffentliche Methode GetType (Geerbt von Object.)
Öffentliche Methode GetUrnFragment Returns the Urn level fragment which obtains its name from the key name property by default. (Überschreibt SfcKey.GetUrnFragment().)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode ToString Returns the string value for the key. (Überschreibt SfcKey.ToString().)

Zum Anfang

Operatoren

  Name Beschreibung
Öffentlicher OperatorStatisches Element Equality Indicates whether the two keys are equal.
Öffentlicher OperatorStatisches Element Inequality Indicates whether the two keys are not equal.

Zum Anfang

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.Sdk.Sfc-Namespace