Class StringName
The Serialized Property Value (String Name) structure specifies a single property within a Serialized Property Storage structure, where the property is identified by a unique Unicode string.
Inherited Members
Namespace: SharpShellLink.PropertyStore
Assembly: SharpShellLink.dll
Syntax
public class StringName : SerializedPropertyValue
Constructors
| Edit this page View SourceStringName()
Constructor
Declaration
public StringName()
StringName(string, TypedPropertyValue)
Declaration
public StringName(string Name, TypedPropertyValue TypedPropertyValue)
Parameters
| Type | Name | Description |
|---|---|---|
| string | Name | A null-terminated Unicode string that specifies the identity of the property |
| TypedPropertyValue | TypedPropertyValue | A TypedPropertyValue structure |
Properties
| Edit this page View SourceName
Name (variable): A null-terminated Unicode string that specifies the identity of the property. It MUST be unique within the enclosing Serialized Property Storage structure.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
NameSize
Name Size (4 bytes): An unsigned integer that specifies the size, in bytes, of the Name field, including the null-terminating character.
Declaration
public uint NameSize { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Reserved
Reserved(1 byte): MUST be 0x00.
Declaration
public byte Reserved { get; }
Property Value
| Type | Description |
|---|---|
| byte |
ValueSize
Value Size (4 bytes): An unsigned integer that specifies the total size, in bytes, of this structure. It MUST be 0x00000000 if this is the last The Serialized Property Value in the enclosing Serialized Property Storage structure.
Declaration
public override uint ValueSize { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Overrides
Methods
| Edit this page View SourceFromByteArray(byte[])
Create an SerializedPropertyValue from a given byte array
Declaration
public static SerializedPropertyValue FromByteArray(byte[] ba)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | ba | The byte array |
Returns
| Type | Description |
|---|---|
| SerializedPropertyValue | An SerializedPropertyValue object |
GetBytes()
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. |