Click or drag to resize

PathLocalToUnc Method

Overload List
  NameDescription
Public methodStatic memberLocalToUnc(String)
[AlphaFS] Converts a local path to a network share path.

A Local path, e.g.: "C:\Windows" or "C:\Windows\" will be returned as: "\\localhost\C$\Windows".

If a logical drive points to a network share path (mapped drive), the share path will be returned without a trailing DirectorySeparator character.

Public methodStatic memberLocalToUnc(String, GetFullPathOptions)
[AlphaFS] Converts a local path to a network share path, optionally returning it as a long path format and the ability to add or remove a trailing backslash.

A Local path, e.g.: "C:\Windows" or "C:\Windows\" will be returned as: "\\localhost\C$\Windows".

If a logical drive points to a network share path (mapped drive), the share path will be returned without a trailing DirectorySeparator character.

Public methodStatic memberLocalToUnc(String, PathFormat)
[AlphaFS] Converts a local path to a network share path.

A Local path, e.g.: "C:\Windows" or "C:\Windows\" will be returned as: "\\localhost\C$\Windows".

If a logical drive points to a network share path (mapped drive), the share path will be returned without a trailing DirectorySeparator character.

Public methodStatic memberLocalToUnc(String, PathFormat, GetFullPathOptions)
[AlphaFS] Converts a local path to a network share path, optionally returning it as a long path format and the ability to add or remove a trailing backslash.

A Local path, e.g.: "C:\Windows" or "C:\Windows\" will be returned as: "\\localhost\C$\Windows".

If a logical drive points to a network share path (mapped drive), the share path will be returned without a trailing DirectorySeparator character.

Top
See Also