Sdílet prostřednictvím


PathWrapper.IsRooted Method

Definition

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

Returns

Applies to