HostGetHostShareFromPath Method |
Gets the host and share path name for the given uncPath.
Namespace:
Alphaleonis.Win32.Network
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static string[] GetHostShareFromPath(
string uncPath
)
Public Shared Function GetHostShareFromPath (
uncPath As String
) As String()
public:
static array<String^>^ GetHostShareFromPath(
String^ uncPath
)
static member GetHostShareFromPath :
uncPath : string -> string[]
Parameters
- uncPath
- Type: SystemString
The share in the format: \\host\share.
Return Value
Type:
StringThe host and share path. For example, if
uncPath is: "\\SERVER001\C$\WINDOWS\System32",
its is returned as string[0] = "SERVER001" and string[1] = "\C$\WINDOWS\System32".
If the conversion from local path to UNC path fails, is returned.
See Also