PathWrapper.GetDirectoryName 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
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