File.CreateSymbolicLink(String, String) 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.
Creates a file symbolic link identified by path
that points to pathToTarget
.
public:
static System::IO::FileSystemInfo ^ CreateSymbolicLink(System::String ^ path, System::String ^ pathToTarget);
public static System.IO.FileSystemInfo CreateSymbolicLink (string path, string pathToTarget);
static member CreateSymbolicLink : string * string -> System.IO.FileSystemInfo
Public Shared Function CreateSymbolicLink (path As String, pathToTarget As String) As FileSystemInfo
Parameters
- path
- String
The path where the symbolic link should be created.
- pathToTarget
- String
The path of the target to which the symbolic link points.
Returns
A FileInfo instance that wraps the newly created file symbolic link.
Exceptions
path
or pathToTarget
is null
.
path
or pathToTarget
is empty.
-or-
path
or pathToTarget
contains a null
character.
Applies to
See also
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.