Bewerken

Share via


MaskDescriptor.Equals(Object) Method

Definition

Determines whether the specified MaskDescriptor is equal to the current MaskDescriptor.

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

Parameters

maskDescriptor
Object

The MaskDescriptor to compare with the current MaskDescriptor.

Returns

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

Remarks

The Equals method determines whether maskDescriptor and the current mask descriptor describe the same mask.

This method returns true if the following conditions are met in both mask descriptors.

  1. The Mask property is the same for both mask descriptors.

  2. The validating type is the same for both mask descriptors.

Note

The Name property is not considered, because the MaskedTextProvider and MaskedTextBox classes do not use it.

Applies to

See also