Jaa


StorageItemMostRecentlyUsedList.Add Method

Definition

Overloads

Add(IStorageItem)

Adds a new storage item to the most recently used (MRU) list.

Add(IStorageItem, String)

Adds a new storage item and accompanying metadata to the most recently used (MRU) list.

Add(IStorageItem, String, RecentStorageItemVisibility)

Adds a new storage item and accompanying metadata to the most recently used (MRU) list, specifying the extent of its visibility in the list.

Add(IStorageItem)

Adds a new storage item to the most recently used (MRU) list.

public:
 virtual Platform::String ^ Add(IStorageItem ^ file) = Add;
/// [Windows.Foundation.Metadata.Overload("AddOverloadDefaultMetadata")]
winrt::hstring Add(IStorageItem const& file);
[Windows.Foundation.Metadata.Overload("AddOverloadDefaultMetadata")]
public string Add(IStorageItem file);
function add(file)
Public Function Add (file As IStorageItem) As String

Parameters

file
IStorageItem

The storage item to add.

Returns

String

Platform::String

winrt::hstring

A token that the app can use later to retrieve the storage item.

Implements

Attributes

See also

Applies to

Add(IStorageItem, String)

Adds a new storage item and accompanying metadata to the most recently used (MRU) list.

public:
 virtual Platform::String ^ Add(IStorageItem ^ file, Platform::String ^ metadata) = Add;
/// [Windows.Foundation.Metadata.Overload("Add")]
winrt::hstring Add(IStorageItem const& file, winrt::hstring const& metadata);
[Windows.Foundation.Metadata.Overload("Add")]
public string Add(IStorageItem file, string metadata);
function add(file, metadata)
Public Function Add (file As IStorageItem, metadata As String) As String

Parameters

file
IStorageItem

The storage item to add.

metadata
String

Platform::String

winrt::hstring

Optional metadata to associate with the storage item.

Returns

String

Platform::String

winrt::hstring

A token that the app can use later to retrieve the storage item.

Implements

M:Windows.Storage.AccessCache.IStorageItemAccessList.Add(Windows.Storage.IStorageItem,System.String) M:Windows.Storage.AccessCache.IStorageItemAccessList.Add(Windows.Storage.IStorageItem,Platform::String) M:Windows.Storage.AccessCache.IStorageItemAccessList.Add(Windows.Storage.IStorageItem,winrt::hstring)
Attributes

See also

Applies to

Add(IStorageItem, String, RecentStorageItemVisibility)

Adds a new storage item and accompanying metadata to the most recently used (MRU) list, specifying the extent of its visibility in the list.

public:
 virtual Platform::String ^ Add(IStorageItem ^ file, Platform::String ^ metadata, RecentStorageItemVisibility visibility) = Add;
/// [Windows.Foundation.Metadata.Overload("AddWithMetadataAndVisibility")]
winrt::hstring Add(IStorageItem const& file, winrt::hstring const& metadata, RecentStorageItemVisibility const& visibility);
[Windows.Foundation.Metadata.Overload("AddWithMetadataAndVisibility")]
public string Add(IStorageItem file, string metadata, RecentStorageItemVisibility visibility);
function add(file, metadata, visibility)
Public Function Add (file As IStorageItem, metadata As String, visibility As RecentStorageItemVisibility) As String

Parameters

file
IStorageItem

The storage item to add.

metadata
String

Platform::String

winrt::hstring

Optional metadata to associate with the storage item.

visibility
RecentStorageItemVisibility

The extent of the visibility of the storage item in the list.

Returns

String

Platform::String

winrt::hstring

A token that the app can use later to retrieve the storage item.

Attributes

See also

Applies to