FileInformation.CopyAsync 메서드

정의

오버로드

CopyAsync(IStorageFolder)

StorageFile의 복사본을 만들고 지정된 StorageFolder에 저장합니다.

CopyAsync(IStorageFolder, String)

StorageFile의 복사본을 만들고, 지정한 파일 이름을 지정하고, 지정된 StorageFolder에 저장합니다.

CopyAsync(IStorageFolder, String, NameCollisionOption)

StorageFile의 복사본을 만들고, 지정한 파일 이름을 지정하고, 지정된 StorageFolder에 저장합니다. 또한 메서드는 동일한 이름의 파일이 지정된 폴더에 이미 있는 경우 수행할 작업을 지정합니다.

CopyAsync(IStorageFolder)

StorageFile의 복사본을 만들고 지정된 StorageFolder에 저장합니다.

public:
 virtual IAsyncOperation<StorageFile ^> ^ CopyAsync(IStorageFolder ^ destinationFolder) = CopyAsync;
/// [Windows.Foundation.Metadata.Overload("CopyOverloadDefaultNameAndOptions")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StorageFile> CopyAsync(IStorageFolder const& destinationFolder);
[Windows.Foundation.Metadata.Overload("CopyOverloadDefaultNameAndOptions")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StorageFile> CopyAsync(IStorageFolder destinationFolder);
function copyAsync(destinationFolder)
Public Function CopyAsync (destinationFolder As IStorageFolder) As IAsyncOperation(Of StorageFile)

매개 변수

destinationFolder
IStorageFolder

복사한 파일을 저장할 폴더입니다.

반환

이 메서드가 성공적으로 완료되면 복사본을 StorageFile 개체로 반환합니다.

구현

특성

추가 정보

적용 대상

CopyAsync(IStorageFolder, String)

StorageFile의 복사본을 만들고, 지정한 파일 이름을 지정하고, 지정된 StorageFolder에 저장합니다.

public:
 virtual IAsyncOperation<StorageFile ^> ^ CopyAsync(IStorageFolder ^ destinationFolder, Platform::String ^ desiredNewName) = CopyAsync;
/// [Windows.Foundation.Metadata.Overload("CopyOverloadDefaultOptions")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StorageFile> CopyAsync(IStorageFolder const& destinationFolder, winrt::hstring const& desiredNewName);
[Windows.Foundation.Metadata.Overload("CopyOverloadDefaultOptions")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StorageFile> CopyAsync(IStorageFolder destinationFolder, string desiredNewName);
function copyAsync(destinationFolder, desiredNewName)
Public Function CopyAsync (destinationFolder As IStorageFolder, desiredNewName As String) As IAsyncOperation(Of StorageFile)

매개 변수

destinationFolder
IStorageFolder

복사한 파일을 저장할 폴더입니다.

desiredNewName
String

Platform::String

winrt::hstring

새 복사본의 이름입니다.

반환

이 메서드가 성공적으로 완료되면 복사본을 StorageFile 개체로 반환합니다.

구현

M:Windows.Storage.IStorageFile.CopyAsync(Windows.Storage.IStorageFolder,System.String) M:Windows.Storage.IStorageFile.CopyAsync(Windows.Storage.IStorageFolder,Platform::String) M:Windows.Storage.IStorageFile.CopyAsync(Windows.Storage.IStorageFolder,winrt::hstring)
특성

추가 정보

적용 대상

CopyAsync(IStorageFolder, String, NameCollisionOption)

StorageFile의 복사본을 만들고, 지정한 파일 이름을 지정하고, 지정된 StorageFolder에 저장합니다. 또한 메서드는 동일한 이름의 파일이 지정된 폴더에 이미 있는 경우 수행할 작업을 지정합니다.

public:
 virtual IAsyncOperation<StorageFile ^> ^ CopyAsync(IStorageFolder ^ destinationFolder, Platform::String ^ desiredNewName, NameCollisionOption option) = CopyAsync;
/// [Windows.Foundation.Metadata.Overload("CopyOverload")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StorageFile> CopyAsync(IStorageFolder const& destinationFolder, winrt::hstring const& desiredNewName, NameCollisionOption const& option);
[Windows.Foundation.Metadata.Overload("CopyOverload")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StorageFile> CopyAsync(IStorageFolder destinationFolder, string desiredNewName, NameCollisionOption option);
function copyAsync(destinationFolder, desiredNewName, option)
Public Function CopyAsync (destinationFolder As IStorageFolder, desiredNewName As String, option As NameCollisionOption) As IAsyncOperation(Of StorageFile)

매개 변수

destinationFolder
IStorageFolder

복사한 파일을 저장할 폴더입니다.

desiredNewName
String

Platform::String

winrt::hstring

새 복사본의 이름입니다.

option
NameCollisionOption

대상 폴더에 파일 이름이 이미 있는 경우 수행할 작업을 나타내는 값입니다.

반환

이 메서드가 성공적으로 완료되면 복사본을 StorageFile 개체로 반환합니다.

구현

M:Windows.Storage.IStorageFile.CopyAsync(Windows.Storage.IStorageFolder,System.String,Windows.Storage.NameCollisionOption) M:Windows.Storage.IStorageFile.CopyAsync(Windows.Storage.IStorageFolder,Platform::String,Windows.Storage.NameCollisionOption) M:Windows.Storage.IStorageFile.CopyAsync(Windows.Storage.IStorageFolder,winrt::hstring,Windows.Storage.NameCollisionOption)
특성

추가 정보

적용 대상