| Visual Basic (Declaration) | |
|---|---|
Public Function New( _ ByVal rootDirectory As String, _ ByVal filePattern As String _ ) | |
| C# | |
|---|---|
public FindFile( string rootDirectory, string filePattern ) | |
Parameters
- rootDirectory
- filePattern
Library/Library.Test/TestFindFile.cs
| C# | Copy Code |
|---|---|
FindFile ff = new FindFile("ZZZ:\\WTF", "*"); ff.FileFound += (o, e) => Assert.Fail("Should not find a file"); ff.Find(); | |
| VB.NET | Copy Code |
|---|---|
Dim ff As New FindFile("ZZZ:\WTF", "*") 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