Loupe - Log - Monitor - Resolve
Gibraltar.Data Namespace / PathManager Class / FindBestPath Method / FindBestPath(PathType,String) Method
The path type to retrieve a path for
The requested full path to use if available.

In This Topic
    FindBestPath(PathType,String) Method
    In This Topic
    Determine the best path of the provided type for the current user
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function FindBestPath( _
       ByVal pathType As PathType, _
       ByVal preferredPath As String _
    ) As String
    public static string FindBestPath( 
       PathType pathType,
       string preferredPath
    )

    Parameters

    pathType
    The path type to retrieve a path for
    preferredPath
    The requested full path to use if available.

    Return Value

    The best accessible path of the requested type.
    Remarks
    If the preferred path is usable it is used, otherwise the common application data folder is used then the local application data folder as a last resort.
    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