MaskedTextProvider.VerifyEscapeChar(Char, Int32) Method
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.
Tests whether the specified character would be escaped at the specified position.
public:
bool VerifyEscapeChar(char input, int position);
public bool VerifyEscapeChar (char input, int position);
member this.VerifyEscapeChar : char * int -> bool
Public Function VerifyEscapeChar (input As Char, position As Integer) As Boolean
- position
- Int32
The position in the mask to test the input character against.
true
if the specified character would be escaped at the specified position; otherwise, false
.
A character is said to be escaped if it is valid input, but is not assigned to that position in the formatted string. Escaped characters fall into the following three categories:
Prompt characters are escaped if the AllowPromptAsInput property is
true
.Input characters are escaped if they have the same value as the literal in the mask, and if the SkipLiterals property is
true
.Space characters are escaped if the ResetOnSpace property is
true
.
The VerifyEscapeChar method will also return false
if the pos
parameter is less than zero or greater than the Length of the Mask.
Produk | Versi |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.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 |
.NET Standard | 2.0, 2.1 |
.NET maklum balas
.NET ialah projek sumber terbuka. Pilih pautan untuk memberikan maklum balas: