RegisteredServer.Key Class

Represents the property that is associated with the object that is used to uniquely identify the object.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcKey
    Microsoft.SqlServer.Management.RegisteredServers.RegisteredServer.Key

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

Syntax

'Declaration
Public NotInheritable Class Key _
    Inherits SfcKey
'Usage
Dim instance As RegisteredServer.Key
public sealed class Key : SfcKey
public ref class Key sealed : public SfcKey
[<SealedAttribute>]
type Key =  
    class 
        inherit SfcKey 
    end
public final class Key extends SfcKey

The RegisteredServer.Key type exposes the following members.

Constructors

  Name Description
Public method RegisteredServer.Key() Initializes a new instance of the RegisteredServer.Key class.
Public method RegisteredServer.Key(String) Initializes a new instance of the RegisteredServer.Key class that has the specified name.
Public method RegisteredServer.Key(RegisteredServer.Key) Initializes a new instance of the RegisteredServer.Key class based on the referenced key object.

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 key.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the object passed as a parameter is a key. (Overrides SfcKey.Equals(Object).)
Public method Equals(SfcKey) Determines whether the specified object key is equal to the referenced object key. (Overrides SfcKey.Equals(SfcKey).)
Public methodStatic member Equals(Object, Object) Determines whether the two object keys are equal.
Public method GetHashCode Returns the hash code of the specified key. (Overrides SfcKey.GetHashCode().)
Public method GetType (Inherited from Object.)
Public method GetUrnFragment Gets the unique resource name path of the specified key. (Overrides SfcKey.GetUrnFragment().)
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, RegisteredServer.Key) Determines whether two objects are equal by performing an equality operation on them with the object and right operator specified.
Public operatorStatic member Equality(RegisteredServer.Key, RegisteredServer.Key) Determines whether two objects are equal by performing an equality operation on them using the specified left operator and right operator.
Public operatorStatic member Equality(RegisteredServer.Key, Object) Determines whether two objects are equal by performing an equality operation on them with the object and left operator specified.
Public operatorStatic member Inequality(Object, RegisteredServer.Key) Determines whether two objects are equal by performing an inequality operation on them using the specified object and right operator.
Public operatorStatic member Inequality(RegisteredServer.Key, RegisteredServer.Key) Determines whether two objects are equal by performing an inequality operation on them using the left operator and right operator.
Public operatorStatic member Inequality(RegisteredServer.Key, Object) Determines whether two objects are equal by performing an inequality operation on them using the specified object and left operator.

Top

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Thread Safety

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

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