Class TypedPropertyValue
The TypedPropertyValue structure represents the typed value of a property in a property set.
Inherited Members
Namespace: SharpShellLink.PropertyStore
Assembly: SharpShellLink.dll
Syntax
public class TypedPropertyValue : Structure
Constructors
| Edit this page View SourceTypedPropertyValue(PropertyType, byte[])
Constructor
Declaration
public TypedPropertyValue(PropertyType Type, byte[] Value)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyType | Type | |
| byte[] | Value |
Properties
| Edit this page View SourcePadding
Padding (2 bytes): MUST be set to zero, and any nonzero value SHOULD be rejected.
Declaration
public ushort Padding { get; }
Property Value
| Type | Description |
|---|---|
| ushort |
Type
Type (2 bytes): MUST be a value from the PropertyType enumeration, indicating the type of property represented.
Declaration
public PropertyType Type { get; }
Property Value
| Type | Description |
|---|---|
| PropertyType |
Value
Value (variable): MUST be the value of the property represented and serialized according to the value of Type
Declaration
public object? Value { get; }
Property Value
| Type | Description |
|---|---|
| object |
Methods
| Edit this page View SourceGetBytes()
Convert the Structure to a byte array
Declaration
public override byte[] GetBytes()
Returns
| Type | Description |
|---|---|
| byte[] | Byte array representation of the Structure |
Overrides
| Edit this page View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |