Partilhar via


SfcKeyChain.Equals Method

Definition

Overloads

Equals(SfcKeyChain)

The strongly-typed equality check used by the strongly-typed operators. Compares for client equality of the same instance in the same object tree.

Equals(Object)

Two SfcKeyChains are equal iff

  1. They are both from the same domain and domain instance tree
  2. They have the same number of Keys
  3. Each Key is equal, checked from the bottom up to avoid nearby-but-not-equal comparisons Each Key class must implement a reasonable operator== that compares the Key values and not rely on the default object.Equals(object) which only checks for reference equality.

Equals(SfcKeyChain)

The strongly-typed equality check used by the strongly-typed operators. Compares for client equality of the same instance in the same object tree.

public bool Equals (Microsoft.SqlServer.Management.Sdk.Sfc.SfcKeyChain otherKeychain);
override this.Equals : Microsoft.SqlServer.Management.Sdk.Sfc.SfcKeyChain -> bool
Public Function Equals (otherKeychain As SfcKeyChain) As Boolean

Parameters

otherKeychain
SfcKeyChain

The keychain to compare.

Returns

True if equivalent, otherwise false.

Implements

Applies to

Equals(Object)

Two SfcKeyChains are equal iff

  1. They are both from the same domain and domain instance tree
  2. They have the same number of Keys
  3. Each Key is equal, checked from the bottom up to avoid nearby-but-not-equal comparisons Each Key class must implement a reasonable operator== that compares the Key values and not rely on the default object.Equals(object) which only checks for reference equality.
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

Parameters

obj
Object

The object to compare, which must be a keychain.

Returns

True if equivalent, otherwise false.

Applies to