Share via


NameKey Class

Identifies Microsoft.SqlServer.Utility objects that use a name property as an Sfc key.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcKey
    Microsoft.SqlServer.Management.Utility.NameKey
      Microsoft.SqlServer.Management.Utility.ManagedInstance.Key

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

Syntax

'Declaration
Public MustInherit Class NameKey _
    Inherits SfcKey
'Usage
Dim instance As NameKey
public abstract class NameKey : SfcKey
public ref class NameKey abstract : public SfcKey
[<AbstractClassAttribute>]
type NameKey =  
    class 
        inherit SfcKey 
    end
public abstract class NameKey extends SfcKey

The NameKey type exposes the following members.

Constructors

  Name Description
Public method NameKey Initializes a new instance of the NameKey class with the specified key name.

Top

Properties

  Name Description
Public property InstanceType Gets the type of the instance class associated with this key class. (Inherited from SfcKey.)
Public property Name Gets the name of the object represented by the NameKey.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the object represented by the NameKey is equal to the specified Object. (Overrides SfcKey.Equals(Object).)
Public method Equals(SfcKey) Determines whether the object represented by the current NameKey is equal to the object represented by the specified key. (Overrides SfcKey.Equals(SfcKey).)
Public methodStatic member Equals(Object, Object) Determines whether the two specified objects are equal.
Protected method Finalize (Inherited from Object.)
Public method GetHashCode Returns the hash code for this NameKey. (Overrides SfcKey.GetHashCode().)
Public method GetType (Inherited from Object.)
Public method GetUrnFragment Do not reference this member directly in your code. It supports the SQL Server infrastructure. Gets the unique resource name (URN) path partial string that represents the object identified by the current [T:Microsoft.SqlServer.Management. Sdk.Sfc.SfcKey].. (Inherited from SfcKey.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Do not reference this member directly in your code. It supports the SQL Server infrastructure. Returns a String value that is a sortable representation of the object that can be used in external comparers. (Inherited from SfcKey.)

Top

Operators

  Name Description
Public operatorStatic member Equality(Object, NameKey) Determines whether the the specified Object is the same as the object represented by the specified NameKey .
Public operatorStatic member Equality(NameKey, NameKey) Determines whether the objects represented by the two specified NameKey values are the same.
Public operatorStatic member Equality(NameKey, Object) Determines whether the object represented by the specified NameKey is the same as the specified Object.
Public operatorStatic member Inequality(Object, NameKey) Determines whether the the specified Object is different than the object represented by the specified NameKey .
Public operatorStatic member Inequality(NameKey, NameKey) Determines whether the objects represented by the two specified NameKey values are different.
Public operatorStatic member Inequality(NameKey, Object) Determines whether the object represented by the specified NameKey is different than the specified Object.

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.Utility Namespace