MaskDescriptor.Equals(Object) Method

Definition

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

C#
public override bool Equals(object maskDescriptor);
C#
public override bool Equals(object? maskDescriptor);

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.

Nota

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

Applies to

Prodotto Versioni
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.1, 5, 6, 7, 8, 9, 10

See also