Share via


NamedKey<T> Class

Represents the single string name key for an instance class.

Inheritance Hierarchy

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 does not support generic types and methods.

Type Parameters

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

The NamedKey<T> type exposes the following members.

Constructors

  Name Description
Public method NamedKey<T>() Initializes a new instance of the NamedKey<T> class.
Public method NamedKey<T>(IDictionary<String, Object>) Initializes a new instance of the NamedKey<T> class from a field dictionary.
Public method NamedKey<T>(String) Initializes a new instance of the NamedKey<T> class from a string.
Public method NamedKey<T>(NamedKey<T>) Initializes a new instance of the NamedKey<T> class from another name key.

Top

Properties

  Name Description
Public property InstanceType Gets the instance type which the key represents. (Overrides SfcKey.InstanceType.)
Public property Name Gets the name key value.
Protected property UrnName Gets the Urn level name corresponding to the instance type which the key represents.

Top

Methods

  Name Description
Public method Equals(Object) Compares a name key to the specified key for value of equality. (Overrides SfcKey.Equals(Object).)
Public method Equals(NamedKey<T>) Compares a name key to the specified key for value of equality.
Public method Equals(SfcKey) Compares a name key to the key for value of equality. (Overrides SfcKey.Equals(SfcKey).)
Public methodStatic member Equals(Object, Object) Compares the two keys for value of equality.
Protected method Finalize (Inherited from Object.)
Public method GetHashCode Returns a hash code for the key. (Overrides SfcKey.GetHashCode().)
Public method GetType (Inherited from Object.)
Public method GetUrnFragment Returns the Urn level fragment which obtains its name from the key name property by default. (Overrides SfcKey.GetUrnFragment().)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Returns the string value for the key. (Overrides SfcKey.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Equality Indicates whether the two keys are equal.
Public operatorStatic member Inequality Indicates whether the two keys are not equal.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SqlServer.Management.Sdk.Sfc Namespace