| IGDStorageFolder2TryGetItemAsync Method |
Try to get a single file or sub-folder from the current folder by using the name of the item.
Namespace:
GD
Assembly:
GD (in GD.dll) Version: 255.255.255.255
Syntax IAsyncOperation<IGDStorageItem> TryGetItemAsync(
string name
)
IAsyncOperation<IGDStorageItem^>^ TryGetItemAsync(
[InAttribute] String^ name
)
function TryGetItemAsync(name);
Parameters
- name
- Type: SystemString
The name (or path relative to the current folder) of the file or folder to get.
Return Value
Type:
IAsyncOperationIGDStorageItemWhen this method completes successfully, it returns the file or folder (type
IGDStorageItem).
Remarks If you simply want to get a file or folder in your app, see the
TryGetItemAsync method of the
GDStorageFolder class.
See Also