ValidatePathFormat Method
See Also 
SourceCode.Workflow.Design.InfoPath.FormTemplate Namespace > XsnLocation Class : ValidatePathFormat Method



path
The full path of the xsn file.
isWebPath
The path is a URL.

Glossary Item Box

Validates the format of the path. The following is validated: 1) Path is not empty; 2) Path is a well-formed URL if isWebPath is true; 3) Path contains a file name; 4) The file name has a .xsn extension.

Syntax

Visual Basic (Declaration) 
Public Shared Sub ValidatePathFormat( _
   ByVal path As String, _
   ByVal isWebPath As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim path As String
Dim isWebPath As Boolean
 
XsnLocation.ValidatePathFormat(path, isWebPath)
C# 
public static void ValidatePathFormat( 
   string path,
   bool isWebPath
)
C++/CLI 
public:
static void ValidatePathFormat( 
   String^ path,
   bool isWebPath
) 

Parameters

path
The full path of the xsn file.
isWebPath
The path is a URL.

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