PathWrapper.IsRooted Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
IsRooted(String) |
Determines if the path includes a root, such as a UNC path or a drive letter on Windows, or begins with / on Linux If the path starts with / the path is treated as a Linux path, otherwise as a Windows path |
IsRooted(String, PathType) |
Determines if the path includes a root, such as a UNC path or a drive letter on Windows, or begins with / on Linux |
IsRooted(String)
Determines if the path includes a root, such as a UNC path or a drive letter on Windows, or begins with / on Linux If the path starts with / the path is treated as a Linux path, otherwise as a Windows path
public static bool IsRooted (string path);
static member IsRooted : string -> bool
Public Shared Function IsRooted (path As String) As Boolean
Parameters
- path
- String
Returns
Applies to
IsRooted(String, PathType)
Determines if the path includes a root, such as a UNC path or a drive letter on Windows, or begins with / on Linux
public static bool IsRooted (string path, Microsoft.SqlServer.Management.Smo.PathType pathType);
static member IsRooted : string * Microsoft.SqlServer.Management.Smo.PathType -> bool
Public Shared Function IsRooted (path As String, pathType As PathType) As Boolean
Parameters
- path
- String
- pathType
- PathType
The type of path. If set to Unspecified - if the path starts with / the path is treated as a Linux path, otherwise as a Windows path