IStorageFolder.GetItemAsync(String) 方法

定義

IStorageFolder取得指定的專案。

public:
 IAsyncOperation<IStorageItem ^> ^ GetItemAsync(Platform::String ^ name);
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IStorageItem> GetItemAsync(winrt::hstring const& name);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IStorageItem> GetItemAsync(string name);
function getItemAsync(name)
Public Function GetItemAsync (name As String) As IAsyncOperation(Of IStorageItem)

參數

name
String

Platform::String

winrt::hstring

要擷取之項目的名稱。

傳回

當此方法成功完成時,它會傳回檔案或資料夾, (類型 IStorageItem) 。

屬性

適用於

另請參閱