StorageItemContentProperties.SavePropertiesAsync 메서드

정의

오버로드

SavePropertiesAsync()

항목과 연결된 모든 속성을 저장합니다.

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

항목과 연결된 지정된 속성 및 값을 저장합니다.

SavePropertiesAsync()

항목과 연결된 모든 속성을 저장합니다.

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

반환

이 메서드가 완료되면 개체 또는 값이 반환되지 않습니다.

구현

특성

설명

속성 값 중 하나가 유효하지 않으면 값이 저장되지 않습니다.

추가 정보

적용 대상

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

항목과 연결된 지정된 속성 및 값을 저장합니다.

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

매개 변수

propertiesToSave

IIterable<IKeyValuePair<String,Object>>

IEnumerable<KeyValuePair<String,Object>>

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

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

키-값 쌍으로 저장할 속성의 이름과 값이 들어 있는 컬렉션입니다( IKeyValuePair 형식).

반환

이 메서드가 완료되면 개체 또는 값이 반환되지 않습니다.

구현

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}})
특성

설명

System.ExpandoProperties

Expando 속성은 메모리에 instance 스토리지 파일과 연결된 명명된 값 집합입니다. 파일 시스템은 파일 시스템에 영구적으로 저장되지 않지만 파일이 액세스 캐시에 저장될 때 유지됩니다.

모든 앱에서 작성 및 읽을 수 있으므로 정보를 스토리지 파일과 연결하는 방법을 제공합니다. 이는 스토리지 파일이 해당 파일에 대한 추가 정보를 전달하기 위해 한 앱에서 다른 앱으로 전달되는 시나리오에서 유용합니다.

Expando 속성은 Windows 런타임 스토리지 API를 사용하여 액세스됩니다. "System.ExpandoProperties" 속성 이름과 함께 RetrievePropertiesAsync 를 사용하여 값으로 검색됩니다. expando 속성은 SavePropertiesAsync를 사용하여 작성됩니다. 해당 값은 속성 집합 자체이므로 PropertySet 프로그래밍 모델을 사용하여 해당 값에 액세스합니다.

System.ExpandoProperties 집합의 값을 식별하는 데 사용되는 이름은 시스템의 속성 명명 체계("시스템"을 사용하여 속성 이름 접두사)를 준수할 필요가 없습니다. 문자열 값일 수 있습니다.

시스템은 사용해야 하는 이름 중 일부를 정의합니다. 예를 들어 "OriginURL"은 원격 원본에서 다운로드한 경우 로컬로 저장된 파일이 어디에서 왔는지 통신하는 데 사용됩니다. ( 다운로드 환경 사용자 지정을 참조하세요.)

앱은 다른 애플리케이션이 상호 운용할 수 있도록 사용하는 속성을 정의하고 문서화할 수 있습니다. 예를 들어 System.ExpandoProperties를 사용하여 공급자 앱이 유니버설 Office 앱에 라이선스 정보를 전달하여 파일이 개인 또는 비즈니스용인지 여부를 나타낼 수 있습니다.

추가 정보

적용 대상