StorageFile.GetFileFromPathAsync(String) 메서드

정의

지정된 경로의 파일을 나타내는 StorageFile 개체를 가져옵니다.

public:
 static IAsyncOperation<StorageFile ^> ^ GetFileFromPathAsync(Platform::String ^ path);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<StorageFile> GetFileFromPathAsync(winrt::hstring const& path);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<StorageFile> GetFileFromPathAsync(string path);
function getFileFromPathAsync(path)
Public Shared Function GetFileFromPathAsync (path As String) As IAsyncOperation(Of StorageFile)

매개 변수

path
String

Platform::String

winrt::hstring

나타낼 StorageFile 을 가져올 파일의 경로입니다.

경로에서 슬래시를 사용하는 경우 백슬라이시(\)를 사용해야 합니다. 슬래시(/)는 이 메서드에서 허용되지 않습니다.

반환

이 메서드가 완료되면 파일을 StorageFile으로 반환합니다.

특성

예외

지정된 파일이 없는 경우 경로 값을 확인 합니다.

지정된 파일에 액세스할 수 있는 권한이 없습니다. 자세한 내용은 파일 액세스 권한을 참조하세요.

경로는 상대 경로 또는 Uri일 수 없습니다. 경로 값을 확인 합니다.

적용 대상

추가 정보