Version

ApplyMask(String,MaskMode,Char,Char,Int32) Method

Applies the mask to str and returns the new string
Syntax
'Declaration
 
Public Overloads Function ApplyMask( _
   ByVal str As String, _
   ByVal maskMode As MaskMode, _
   ByVal promptChar As Char, _
   ByVal padChar As Char, _
   ByRef numberOfCharsMatched As Integer _
) As String
public string ApplyMask( 
   string str,
   MaskMode maskMode,
   char promptChar,
   char padChar,
   out int numberOfCharsMatched
)

Parameters

str
String to be masked
maskMode
The MaskMode.
promptChar
Prompt characters
padChar
Padding characters
numberOfCharsMatched
Returns number of chars that matched mask.

Return Value

Masked string
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also