共用方式為


IdKey.Equals Method

Definition

Determines whether the two instances of IdKey object are equal.

Overloads

Equals(SfcKey)

Indicates whether the current key is the same as the specified key.

Equals(Object)

Indicates whether the specified object is equal to the current IdKey object.

Equals(Object, Object)

Indicates whether the specified objects are considered equal.

Equals(SfcKey)

Indicates whether the current key is the same as the specified key.

public:
 override bool Equals(Microsoft::SqlServer::Management::Sdk::Sfc::SfcKey ^ key);
public override bool Equals (Microsoft.SqlServer.Management.Sdk.Sfc.SfcKey key);
override this.Equals : Microsoft.SqlServer.Management.Sdk.Sfc.SfcKey -> bool
Public Overrides Function Equals (key As SfcKey) As Boolean

Parameters

key
SfcKey

The specified key.

Returns

true if the current key is the same as the specified key; otherwise, false.

Applies to

Equals(Object)

Indicates whether the specified object is equal to the current IdKey object.

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

Parameters

obj
Object

The specified object.

Returns

true if the specified object is equal to the current object; otherwise, false.

Applies to

Equals(Object, Object)

Indicates whether the specified objects are considered equal.

public:
 static bool Equals(System::Object ^ obj1, System::Object ^ obj2);
public static bool Equals (object obj1, object obj2);
static member Equals : obj * obj -> bool
Public Shared Function Equals (obj1 As Object, obj2 As Object) As Boolean

Parameters

obj1
Object

The first object to compare.

obj2
Object

The second object to compare.

Returns

true if the specified objects are considered equal; otherwise, false.

Applies to