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

rootDirectory
filePattern

Glossary Item Box

Creates a FindFile instance.

Syntax

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

Parameters

rootDirectory
filePattern

Example

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.NETCopy Code
Dim ff As New FindFile("ZZZ:\WTF", "*")
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