Share via


StorageItemAccessList.AddOrReplace Method

Definition

Overloads

AddOrReplace(String, IStorageItem)

Adds a new storage item to the access 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 access list, or replaces the specified item if it already exists in the list.

AddOrReplace(String, IStorageItem)

Adds a new storage item to the access 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 access 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

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

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