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
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.NET | Copy 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() |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7