ShellBrowser .Net Edition
GetUNCPathFromMappedDrive Method (filePath)
NamespacesJam.ShellPathCollectionGetUNCPathFromMappedDrive(String)
This method needs the mpr.dll to work. (UNCPath length = max 1024 chars) This method should only be used with mapped drives, e.g. for a fixed drive an IOException occurs (Not Connected) See DriveType to determine whether the drive is a network share.
Declaration Syntax
C#Visual BasicVisual C++
public static string GetUNCPathFromMappedDrive(
	string filePath
)
Public Shared Function GetUNCPathFromMappedDrive ( _
	filePath As String _
) As String
public:
static String^ GetUNCPathFromMappedDrive(
	String^ filePath
)
Parameters
filePath (String)
The path to be converted
Return Value
converted path
Exceptions
ExceptionCondition
ArgumentExceptionIf the argument is not a valid path
IOExceptionIf the windows system call fails

Assembly: ShellBrowser (Module: ShellBrowser) Version: 4.2.1.45 (4.2.1.45)