CSharpTest.Net
FindFile Constructor(String,String,Boolean)
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.IO Namespace > FindFile Class > FindFile Constructor : FindFile Constructor(String,String,Boolean)

rootDirectory
filePattern
recursive

Glossary Item Box

Creates a FindFile instance.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal rootDirectory As String, _
   ByVal filePattern As String, _
   ByVal recursive As Boolean _
)
C# 
public FindFile( 
   string rootDirectory,
   string filePattern,
   bool recursive
)

Parameters

rootDirectory
filePattern
recursive

Example

Library/Library.Test/TestFindFile.cs

C#Copy Code
FindFile ff = new FindFile(Path.Combine(TestFolder, "foo"), "*", false);
ff.FileFound += (o, e) => Assert.Fail("Should not find a file");
ff.Find();
VB.NETCopy Code
Dim ff As New FindFile(Path.Combine(TestFolder, "foo"), "*", False)
ff.FileFound += Function(o, e) Assert.Fail("Should not find a file")
ff.Find()

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys