Class ItemID
An ItemID is an element in an IDList structure. The data stored in a given ItemID is defined by the source that corresponds to the location in the target namespace of the preceding ItemIDs. This data uniquely identifies the items in that part of the namespace.
Inherited Members
Namespace: SharpShellLink.Structures
Assembly: SharpShellLink.dll
Syntax
public class ItemID : Structure
Constructors
| Edit this page View SourceItemID()
Constructor
Declaration
public ItemID()
ItemID(byte[])
Constructor
Declaration
public ItemID(byte[] itemID)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | itemID | An ItemID value |
Properties
| Edit this page View SourceData
Data (variable): The shell data source-defined data that specifies an item.
Declaration
public byte[] Data { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
DisplayName
Retrieves the display name of an item identified by its IDList.
Declaration
public string DisplayName { get; }
Property Value
| Type | Description |
|---|---|
| string |
ItemIDSize
ItemIDSize (2 bytes): A 16-bit, unsigned integer that specifies the size, in bytes, of the ItemID structure, including the ItemIDSize field.
Declaration
public ushort ItemIDSize { get; }
Property Value
| Type | Description |
|---|---|
| ushort |
MinimumBlockSize
headerBlockSize (4 bytes): A 32-bit, unsigned integer that specifies the size of the ExtraDataBlock structure.
Declaration
public override uint MinimumBlockSize { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Overrides
Methods
| Edit this page View SourceFromByteArray(byte[])
Create an ItemID from a given byte array
Declaration
public static ItemID FromByteArray(byte[] ba)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | ba | The byte array |
Returns
| Type | Description |
|---|---|
| ItemID | An ItemID 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. |