NameKey Class
SQL Server 2012
Identifies Microsoft.SqlServer.Utility objects that use a name property as an Sfc key.
System.Object
Microsoft.SqlServer.Management.Sdk.Sfc.SfcKey
Microsoft.SqlServer.Management.Utility.NameKey
Microsoft.SqlServer.Management.Utility.ManagedInstance.Key
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)
The NameKey type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | InstanceType | Gets the type of the instance class associated with this key class. (Inherited from SfcKey.) |
![]() | Name | Gets the name of the object represented by the NameKey. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the object represented by the NameKey is equal to the specified Object. (Overrides SfcKey.Equals(Object).) |
![]() | 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).) |
![]() ![]() | Equals(Object, Object) | Determines whether the two specified objects are equal. |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | Returns the hash code for this NameKey. (Overrides SfcKey.GetHashCode().) |
![]() | GetType | (Inherited from Object.) |
![]() | 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.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | 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.) |
| Name | Description | |
|---|---|---|
![]() ![]() | Equality(Object, NameKey) | Determines whether the the specified Object is the same as the object represented by the specified NameKey . |
![]() ![]() | Equality(NameKey, NameKey) | Determines whether the objects represented by the two specified NameKey values are the same. |
![]() ![]() | Equality(NameKey, Object) | Determines whether the object represented by the specified NameKey is the same as the specified Object. |
![]() ![]() | Inequality(Object, NameKey) | Determines whether the the specified Object is different than the object represented by the specified NameKey . |
![]() ![]() | Inequality(NameKey, NameKey) | Determines whether the objects represented by the two specified NameKey values are different. |
![]() ![]() | Inequality(NameKey, Object) | Determines whether the object represented by the specified NameKey is different than the specified Object. |

