Nevron Open Vision Documentation
Nevron.Nov.IO Namespace / NPath Class / IsPathRooted Method


In This Topic
    IsPathRooted Method
    In This Topic
    Checks whether the specified path string contains a root, for example "C:\Documents\MyFile.txt" contains a root - "C:\" and an Unix (Mac OS) path "/Users/John/Documents/MyFile.txt" contains a root "/".
    Syntax
    'Declaration
     
    
    Public Function IsPathRooted( _
       ByVal path As System.String _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As NPath
    Dim path As System.String
    Dim value As System.Boolean
     
    value = instance.IsPathRooted(path)
    public System.bool IsPathRooted( 
       System.string path
    )

    Parameters

    path
    Exceptions
    ExceptionDescription
    path contains one or more of the invalid path characters.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also