Returns the directory information for the specified path string.
Namespace:
?
System.IO
Assembly:
?
mscorlib (in mscorlib.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function GetDirectoryName ( _
path As String _
) As String |
Visual C++ |
---|
public:
static String^ GetDirectoryName(
String^ path
) |
JavaScript |
---|
System.IO.Path.getDirectoryName = function(path); |
Return Value
A
String containing directory information for path, or null if path denotes a root directory, is the empty string (""), or is null. Returns
Empty if path does not contain directory information.
Exceptions
See Also