Delen via


Computer.Key Class

The Computer.Key class represents the key that identifies the Computer class.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcKey
    Microsoft.SqlServer.Management.Utility.Computer.Key

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

Syntax

'Declaration
Public NotInheritable Class Key _
    Inherits SfcKey
'Usage
Dim instance As Computer.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 Computer.Key type exposes the following members.

Constructors

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

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

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified object key is equal to the referenced string value. (Overrides SfcKey.Equals(Object).)
Public method Equals(SfcKey) Determines whether the two specified objects are equal. (Overrides SfcKey.Equals(SfcKey).)
Public methodStatic member Equals(Object, Object) Determines whether the two specified objects are equal.
Public method GetHashCode Gets the hash code for the object. (Overrides SfcKey.GetHashCode().)
Public method GetType (Inherited from Object.)
Public method GetUrnFragment Gets the URN path partial string that represents the computer. (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, Computer.Key) Determines whether the specified object is equal to the object key.
Public operatorStatic member Equality(Computer.Key, Computer.Key) Determines whether the specified object key is equal to the second object key.
Public operatorStatic member Equality(Computer.Key, Object) Determines whether the specified object key is equal to the object.
Public operatorStatic member Inequality(Object, Computer.Key) Determines whether the specified object is not equal to the object key.
Public operatorStatic member Inequality(Computer.Key, Computer.Key) Determines whether the specified object key is not equal to the second object key.
Public operatorStatic member Inequality(Computer.Key, Object) Determines whether the specified object key is not equal to the object.

Top

Remarks

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