Version

GetMaskForType Method

Returns the default mask used for editing values of dataType. If the dataType is not supported then returns null.
Syntax
'Declaration
 
Public Function GetMaskForType( _
   ByVal dataType As Type, _
   ByVal formatProvider As IFormatProvider _
) As String
public string GetMaskForType( 
   Type dataType,
   IFormatProvider formatProvider
)

Parameters

dataType
The System.Type to acquire a mask for.
formatProvider
A CultureInfo or DateTimeFormatInfo or NumberFormatInfo

Return Value

A string representing the default mask for the specified type.
Remarks
Default masks are used in case where no input mask is specified.
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