共用方式為


NameKey.Equals Method

Definition

Determines whether the object represented by the NameKey is equal to the specified object.

Overloads

Equals(SfcKey)

Determines whether the object represented by the current NameKey is equal to the object represented by the specified key.

Equals(Object)

Determines whether the object represented by the NameKey is equal to the specified Object.

Equals(Object, Object)

Determines whether the two specified objects are equal.

Equals(SfcKey)

Determines whether the object represented by the current NameKey is equal to the object represented by 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 object represented by the current Namekey is equal to the object represented by the specified key; otherwise, false.

Applies to

Equals(Object)

Determines whether the object represented by the NameKey is equal to the specified 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 object represented by the NameKey is equal to the specified object; otherwise, false.

Applies to

Equals(Object, Object)

Determines whether the two specified objects are 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 two specified objects are equal; otherwise, false.

Applies to