Dela via


StorageItemMostRecentlyUsedList.AddOrReplace Method

Definition

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

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

See also

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

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

See also

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

See also

Applies to