Delen via


IStorageItemAccessList.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:
 void AddOrReplace(Platform::String ^ token, IStorageItem ^ file);
/// [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.

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:
 void AddOrReplace(Platform::String ^ token, IStorageItem ^ file, Platform::String ^ metadata);
/// [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.

Attributes

See also

Applies to