共用方式為


IPropertySetSerializer 介面

定義

提供將 IPropertySet 序列化/還原序列化為 IBuffer 的功能。

public interface class IPropertySetSerializer
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 851968)]
/// [Windows.Foundation.Metadata.Guid(1854848796, 61245, 17270, 178, 14, 91, 230, 56, 174, 172, 119)]
struct IPropertySetSerializer
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 851968)]
[Windows.Foundation.Metadata.Guid(1854848796, 61245, 17270, 178, 14, 91, 230, 56, 174, 172, 119)]
public interface IPropertySetSerializer
Public Interface IPropertySetSerializer
屬性

Windows 需求

裝置系列
Windows 11 (已於 10.0.22000.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v14.0 引進)

方法

Deserialize(IPropertySet, IBuffer)

從 IBuffer 還原序列化 IPropertySet。

Serialize(IPropertySet)

將 IPropertySet 序列化為 IBuffer。

適用於

另請參閱

  • <xref:Windows.Storage.Streams.IPropertySetSerializer.Serialize(Windows.Foundation.Collections.IPropertySet)%0aM%3aWindows.Storage.Streams.IPropertySetSerializer.Deserialize(Windows.Foundation.Collections.IPropertySet>