AVEVA OMI Software Developer Kit



Path to be corrected
GetValidPath Method
Gets the valid path trimming any whitepace or path separator at the end.
Syntax
'Declaration
 
Public Shared Function GetValidPath( _
   ByVal path As String _
) As String
'Usage
 
Dim path As String
Dim value As String
 
value = PathUtil.GetValidPath(path)
public static string GetValidPath( 
   string path
)
public:
static String^ GetValidPath( 
   String^ path
) 

Parameters

path
Path to be corrected

Return Value

A valid path after trimming any whitepace or path separator at the end
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