GetFile Method
See Also 
SourceCode.Workflow.Design.InfoPath Namespace > Common Class : GetFile Method



fileName
directory
canReturnNull

Glossary Item Box

Syntax

Visual Basic (Declaration)  
Public Shared Function GetFile( _
   ByVal fileName As String, _
   ByVal directory As DirectoryInfo, _
   ByVal canReturnNull As Boolean _
) As FileInfo
Visual Basic (Usage) Copy Code
Dim fileName As String
Dim directory As DirectoryInfo
Dim canReturnNull As Boolean
Dim value As FileInfo
 
value = Common.GetFile(fileName, directory, canReturnNull)
C#  
public static FileInfo GetFile( 
   string fileName,
   DirectoryInfo directory,
   bool canReturnNull
)
C++/CLI  
public:
static FileInfo^ GetFile( 
   String^ fileName,
   DirectoryInfo^ directory,
   bool canReturnNull
) 

Parameters

fileName
directory
canReturnNull

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