File.CreateSymbolicLink(String, String) 메서드

정의

해당 지점pathToTarget으로 식별되는 path 파일 기호 링크를 만듭니다.

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

매개 변수

path
String

기호 링크를 만들어야 하는 경로입니다.

pathToTarget
String

기호화된 링크가 가리키는 대상의 경로입니다.

반품

FileInfo 새로 만든 파일 기호 링크를 래핑하는 인스턴스입니다.

예외

path 또는 pathToTarget .입니다 null.

path 또는 pathToTarget 비어 있습니다.

-또는-

path 또는 pathToTarget 문자를 포함합니다 null .

파일 또는 디렉터리가 이미 있는 위치입니다 path.

-또는-

I/O 오류가 발생했습니다.

적용 대상

추가 정보