IStorageFolder.CreateFileAsync 메서드

정의

오버로드

CreateFileAsync(String)

현재 폴더에 새 파일을 만듭니다.

CreateFileAsync(String, CreationCollisionOption)

현재 폴더에 새 파일을 만들고 이름이 같은 파일이 현재 폴더에 이미 있는 경우 수행할 작업을 지정합니다.

CreateFileAsync(String)

현재 폴더에 새 파일을 만듭니다.

public:
 IAsyncOperation<StorageFile ^> ^ CreateFileAsync(Platform::String ^ desiredName);
/// [Windows.Foundation.Metadata.Overload("CreateFileAsyncOverloadDefaultOptions")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StorageFile> CreateFileAsync(winrt::hstring const& desiredName);
[Windows.Foundation.Metadata.Overload("CreateFileAsyncOverloadDefaultOptions")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StorageFile> CreateFileAsync(string desiredName);
function createFileAsync(desiredName)
Public Function CreateFileAsync (desiredName As String) As IAsyncOperation(Of StorageFile)

매개 변수

desiredName
String

Platform::String

winrt::hstring

만들 파일의 원하는 이름입니다.

반환

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

특성

추가 정보

적용 대상

CreateFileAsync(String, CreationCollisionOption)

현재 폴더에 새 파일을 만들고 이름이 같은 파일이 현재 폴더에 이미 있는 경우 수행할 작업을 지정합니다.

public:
 IAsyncOperation<StorageFile ^> ^ CreateFileAsync(Platform::String ^ desiredName, CreationCollisionOption options);
/// [Windows.Foundation.Metadata.Overload("CreateFileAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StorageFile> CreateFileAsync(winrt::hstring const& desiredName, CreationCollisionOption const& options);
[Windows.Foundation.Metadata.Overload("CreateFileAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StorageFile> CreateFileAsync(string desiredName, CreationCollisionOption options);
function createFileAsync(desiredName, options)
Public Function CreateFileAsync (desiredName As String, options As CreationCollisionOption) As IAsyncOperation(Of StorageFile)

매개 변수

desiredName
String

Platform::String

winrt::hstring

만들 파일의 원하는 이름입니다.

현재 폴더에 desiredName이 이미 지정된 기존 파일이 있는 경우 지정한 CreationCollisionOption 은 Windows가 충돌에 응답하는 방법을 결정합니다.

options
CreationCollisionOption

desiredName이 현재 폴더에 있는 기존 파일의 이름과 같은 경우 Windows가 응답하는 방법을 결정하는 열거형 값입니다.

반환

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

특성

추가 정보

적용 대상