DataPackage.SetStorageItems 方法

定義

多載

SetStorageItems(IIterable<IStorageItem>)

設定 DataPackage中包含的檔案和資料夾。

SetStorageItems(IIterable<IStorageItem>, Boolean)

將檔案和資料夾新增至 DataPackage

SetStorageItems(IIterable<IStorageItem>)

設定 DataPackage中包含的檔案和資料夾。

public:
 virtual void SetStorageItems(IIterable<IStorageItem ^> ^ value) = SetStorageItems;
/// [Windows.Foundation.Metadata.Overload("SetStorageItemsReadOnly")]
void SetStorageItems(IIterable<IStorageItem> const& value);
[Windows.Foundation.Metadata.Overload("SetStorageItemsReadOnly")]
public void SetStorageItems(IEnumerable<IStorageItem> value);
function setStorageItems(value)
Public Sub SetStorageItems (value As IEnumerable(Of IStorageItem))

參數

value

IIterable<IStorageItem>

IEnumerable<IStorageItem>

要新增至 DataPackage的檔案和資料夾。

屬性

另請參閱

適用於

SetStorageItems(IIterable<IStorageItem>, Boolean)

將檔案和資料夾新增至 DataPackage

public:
 virtual void SetStorageItems(IIterable<IStorageItem ^> ^ value, bool readOnly) = SetStorageItems;
/// [Windows.Foundation.Metadata.Overload("SetStorageItems")]
void SetStorageItems(IIterable<IStorageItem> const& value, bool const& readOnly);
[Windows.Foundation.Metadata.Overload("SetStorageItems")]
public void SetStorageItems(IEnumerable<IStorageItem> value, bool readOnly);
function setStorageItems(value, readOnly)
Public Sub SetStorageItems (value As IEnumerable(Of IStorageItem), readOnly As Boolean)

參數

value

IIterable<IStorageItem>

IEnumerable<IStorageItem>

要新增至 DataPackage的檔案和資料夾。

readOnly
Boolean

bool

如果檔案是唯讀的,請指定 true;否則為 false。

屬性

另請參閱

適用於