Partager via


PathWrapper.GetDirectoryName Method

Definition

Overloads

GetDirectoryName(String)

Returns the directory string given a path. Handles XI path. It is a simple wrapper so it will be Garbage-In|Garbage-out.

GetDirectoryName(String, PathType)

Returns the directory string given a path. Handles XI path. It is a simple wrapper so it will be Garbage-In|Garbage-out.

GetDirectoryName(String)

Returns the directory string given a path. Handles XI path. It is a simple wrapper so it will be Garbage-In|Garbage-out.

public static string GetDirectoryName (string s1);
static member GetDirectoryName : string -> string
Public Shared Function GetDirectoryName (s1 As String) As String

Parameters

s1
String

Original path.

Returns

directory string

Applies to

GetDirectoryName(String, PathType)

Returns the directory string given a path. Handles XI path. It is a simple wrapper so it will be Garbage-In|Garbage-out.

public static string GetDirectoryName (string s1, Microsoft.SqlServer.Management.Smo.PathType pathType);
static member GetDirectoryName : string * Microsoft.SqlServer.Management.Smo.PathType -> string
Public Shared Function GetDirectoryName (s1 As String, pathType As PathType) As String

Parameters

s1
String

Original path.

pathType
PathType

type of path. If Unspecified, the function will use Linux if s1 starts with /, Windows otherwise

Returns

directory string

Applies to