StorageItemMostRecentlyUsedList.AddOrReplace Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddOrReplace(String, IStorageItem) |
Adds a new storage item to the most recently used (MRU) list, or replaces the specified item if it already exists in the list. |
AddOrReplace(String, IStorageItem, String) |
Adds a new storage item and accompanying metadata to the most recently used (MRU) list, or replaces the specified item if it already exists in the list. |
AddOrReplace(String, IStorageItem, String, RecentStorageItemVisibility) |
Adds a new storage item and accompanying metadata to the most recently used (MRU) list, or replaces the specified item if it already exists in the list. Also specifies the extent of its visibility in the list. |
AddOrReplace(String, IStorageItem)
Adds a new storage item to the most recently used (MRU) list, or replaces the specified item if it already exists in the list.
public:
virtual void AddOrReplace(Platform::String ^ token, IStorageItem ^ file) = AddOrReplace;
/// [Windows.Foundation.Metadata.Overload("AddOrReplaceOverloadDefaultMetadata")]
void AddOrReplace(winrt::hstring const& token, IStorageItem const& file);
[Windows.Foundation.Metadata.Overload("AddOrReplaceOverloadDefaultMetadata")]
public void AddOrReplace(string token, IStorageItem file);
function addOrReplace(token, file)
Public Sub AddOrReplace (token As String, file As IStorageItem)
Parameters
- token
-
String
Platform::String
winrt::hstring
The token associated with the new storage item. If the access list already contains a storage item that has this token, the new item replaces the existing one.
- file
- IStorageItem
The storage item to add or replace.
Implements
- Attributes
See also
- AddOrReplace(String, IStorageItem, String)
- AddOrReplace(String, IStorageItem, String, RecentStorageItemVisibility)
Applies to
AddOrReplace(String, IStorageItem, String)
Adds a new storage item and accompanying metadata to the most recently used (MRU) list, or replaces the specified item if it already exists in the list.
public:
virtual void AddOrReplace(Platform::String ^ token, IStorageItem ^ file, Platform::String ^ metadata) = AddOrReplace;
/// [Windows.Foundation.Metadata.Overload("AddOrReplace")]
void AddOrReplace(winrt::hstring const& token, IStorageItem const& file, winrt::hstring const& metadata);
[Windows.Foundation.Metadata.Overload("AddOrReplace")]
public void AddOrReplace(string token, IStorageItem file, string metadata);
function addOrReplace(token, file, metadata)
Public Sub AddOrReplace (token As String, file As IStorageItem, metadata As String)
Parameters
- token
-
String
Platform::String
winrt::hstring
The token associated with the new storage item. If the access list already contains a storage item that has this token, the new item replaces the existing one.
- file
- IStorageItem
The storage item to add or replace.
- metadata
-
String
Platform::String
winrt::hstring
Optional metadata to associate with the storage item.
Implements
- Attributes
See also
- AddOrReplace(String, IStorageItem)
- AddOrReplace(String, IStorageItem, String, RecentStorageItemVisibility)
Applies to
AddOrReplace(String, IStorageItem, String, RecentStorageItemVisibility)
Adds a new storage item and accompanying metadata to the most recently used (MRU) list, or replaces the specified item if it already exists in the list. Also specifies the extent of its visibility in the list.
public:
virtual void AddOrReplace(Platform::String ^ token, IStorageItem ^ file, Platform::String ^ metadata, RecentStorageItemVisibility visibility) = AddOrReplace;
/// [Windows.Foundation.Metadata.Overload("AddOrReplaceWithMetadataAndVisibility")]
void AddOrReplace(winrt::hstring const& token, IStorageItem const& file, winrt::hstring const& metadata, RecentStorageItemVisibility const& visibility);
[Windows.Foundation.Metadata.Overload("AddOrReplaceWithMetadataAndVisibility")]
public void AddOrReplace(string token, IStorageItem file, string metadata, RecentStorageItemVisibility visibility);
function addOrReplace(token, file, metadata, visibility)
Public Sub AddOrReplace (token As String, file As IStorageItem, metadata As String, visibility As RecentStorageItemVisibility)
Parameters
- token
-
String
Platform::String
winrt::hstring
The token associated with the new storage item. If the access list already contains a storage item that has this token, the new item replaces the existing one.
- file
- IStorageItem
The storage item to add or replace.
- 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.
- Attributes