Xceed .NET Libraries Documentation
NameFilter Constructor(String,FilterScope)


Xceed.FileSystem Assembly > Xceed.FileSystem Namespace > NameFilter Class > NameFilter Constructor : NameFilter Constructor(String,FilterScope)
Mask to use to filter file names (e.g. "*.txt", "a??.txt", etc.) By default, the FilterScope is set to File.
Determines whether the scope applies to files, folders or both.
Initializes a new instance of the NameFilter class.
Syntax
'Declaration
 
Public Function New( _
   ByVal mask As String, _
   ByVal scope As FilterScope _
)
'Usage
 
Dim mask As String
Dim scope As FilterScope
 
Dim instance As New NameFilter(mask, scope)
public NameFilter( 
   string mask,
   FilterScope scope
)

Parameters

mask
Mask to use to filter file names (e.g. "*.txt", "a??.txt", etc.) By default, the FilterScope is set to File.
scope
Determines whether the scope applies to files, folders or both.
Remarks

By default, the mask is not case sensitive. To make it case sensitive, just prepend '>' to the mask parameter.

Requirements

Target Platforms: 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

Reference

NameFilter Class
NameFilter Members
Overload List