2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.OLE
|
2025-09-26 11:57:18 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The PropertySet packet represents a property set.
|
|
|
|
|
/// </summary>
|
2025-10-30 22:52:56 -04:00
|
|
|
/// <see href="https://winprotocoldoc.z19.web.core.windows.net/MS-OLEPS/%5bMS-OLEPS%5d.pdf"/>
|
2025-09-26 11:57:18 -04:00
|
|
|
public class PropertySet
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// MUST be the total size in bytes of the PropertySet packet
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Size { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An unsigned integer representing the number of properties in the
|
|
|
|
|
/// property set.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint NumProperties { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// All PropertyIdentifierAndOffset fields MUST be a sequence of
|
|
|
|
|
/// PropertyIdentifierAndOffset packets. The sequence MUST be in order of
|
|
|
|
|
/// increasing value of the Offset field. Packets are not required to be
|
|
|
|
|
/// in any particular order with regard to the value of the PropertyIdentifier
|
|
|
|
|
/// field.
|
|
|
|
|
/// </summary>
|
2025-10-31 13:59:28 -04:00
|
|
|
public PropertyIdentifierAndOffset[] PropertyIdentifierAndOffsets { get; set; } = [];
|
2025-09-26 11:57:18 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Each Property field is a sequence of property values, each of which MUST
|
|
|
|
|
/// be represented by a TypedPropertyValue packet or a Dictionary packet in
|
|
|
|
|
/// the special case of the Dictionary property.
|
|
|
|
|
/// </summary>
|
2025-10-31 13:59:28 -04:00
|
|
|
public object[] Properties { get; set; } = [];
|
2025-09-26 11:57:18 -04:00
|
|
|
}
|
|
|
|
|
}
|