StorageItemAccessList.Add 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
Add(IStorageItem) |
Adds a new storage item to the access list. |
Add(IStorageItem, String) |
Adds a new storage item and accompanying metadata to the access list. |
Add(IStorageItem)
Adds a new storage item to the access 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
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 access 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
A token that the app can use later to retrieve the storage item.
Implements
- Attributes