MaskDescriptor.Equals(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
The Mask property is the same for both mask descriptors.
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.