Condividi tramite


DocumentProperties.SavePropertiesAsync Metodo

Definizione

Overload

SavePropertiesAsync()

Salva tutte le proprietà associate all'elemento.

SavePropertiesAsync(IIterable<KeyValuePair<String,Object>>)

Salva le proprietà e i valori specificati associati all'elemento.

SavePropertiesAsync()

Salva tutte le proprietà associate all'elemento.

public:
 virtual IAsyncAction ^ SavePropertiesAsync() = SavePropertiesAsync;
/// [Windows.Foundation.Metadata.Overload("SavePropertiesAsyncOverloadDefault")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction SavePropertiesAsync();
[Windows.Foundation.Metadata.Overload("SavePropertiesAsyncOverloadDefault")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction SavePropertiesAsync();
function savePropertiesAsync()
Public Function SavePropertiesAsync () As IAsyncAction

Restituisce

Al termine di questo metodo non viene restituito alcun oggetto o valore.

Implementazioni

Attributi

Commenti

Se uno dei valori della proprietà non è valido, nessuno dei valori verrà salvato.

Vedi anche

Si applica a

SavePropertiesAsync(IIterable<KeyValuePair<String,Object>>)

Salva le proprietà e i valori specificati associati all'elemento.

public:
 virtual IAsyncAction ^ SavePropertiesAsync(IIterable<IKeyValuePair<Platform::String ^, Platform::Object ^> ^> ^ propertiesToSave) = SavePropertiesAsync;
/// [Windows.Foundation.Metadata.Overload("SavePropertiesAsync")]
IAsyncAction SavePropertiesAsync(IIterable<IKeyValuePair<winrt::hstring, IInspectable const&>> const& propertiesToSave);
[Windows.Foundation.Metadata.Overload("SavePropertiesAsync")]
public IAsyncAction SavePropertiesAsync(IEnumerable<KeyValuePair<string,object>> propertiesToSave);
function savePropertiesAsync(propertiesToSave)
Public Function SavePropertiesAsync (propertiesToSave As IEnumerable(Of KeyValuePair(Of String, Object))) As IAsyncAction

Parametri

propertiesToSave

IIterable<IKeyValuePair<String,Object>>

IEnumerable<KeyValuePair<String,Object>>

IIterable<IKeyValuePair<Platform::String,Platform::Object>>

IIterable<IKeyValuePair<winrt::hstring,IInspectable>>

Raccolta che contiene i nomi e i valori delle proprietà da salvare come coppie chiave-valore (digitare IKeyValuePair).

Restituisce

Al termine di questo metodo non viene restituito alcun oggetto o valore.

Implementazioni

M:Windows.Storage.FileProperties.IStorageItemExtraProperties.SavePropertiesAsync(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.Object}}) M:Windows.Storage.FileProperties.IStorageItemExtraProperties.SavePropertiesAsync(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{Platform::String,Platform::Object}}) M:Windows.Storage.FileProperties.IStorageItemExtraProperties.SavePropertiesAsync(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{winrt::hstring,IInspectable}})
Attributi

Commenti

Per salvare le proprietà del file, creare un propertyset e aggiungere le proprietà del file da salvare. Dopo l'aggiunta, usare SavePropertiesAsync per salvare le modifiche.

Si applica a