Click or drag to resize

ShellItemId Class

A class that represent a Windows Shell's SHITEMID structure
Inheritance Hierarchy

Namespace:  ShellBoost.Core
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public class ShellItemId : IEquatable<ShellItemId>

The ShellItemId type exposes the following members.

Constructors
  NameDescription
Protected methodShellItemId
Initializes a new instance of the ShellItemId class.
Top
Properties
  NameDescription
Public propertyData
Gets the SHITEMID data.
Public propertyDebugString
Gets a string useful for debugging.
Public propertyIsKnown
Gets a value indicating whether this instance is known (built by ShellBoost methods) by the current Shell Folder Server.
Public propertyIsTerminator
Gets a value indicating whether this instance is the terminator.
Public propertyPayload
Gets the payload, which is the Data without the Header.
Public propertySize
Gets the SHITEMID data size.
Top
Methods
  NameDescription
Protected methodStatic memberCheckedSize
Gets a checked data size.
Protected methodComputeHashCode
Computes the hash code for this instance.
Public methodStatic memberCopyToPointer
Allocates a buffer and copies this instance data to it.
Public methodEquals(Object)
Determines whether the specified Object is equal to this instance.
(Overrides ObjectEquals(Object).)
Public methodEquals(ShellItemId)
Indicates whether the current object is equal to another object of the same type.
Public methodStatic memberFromData
Creates an instance of a ShellItemId from a PIDL data.
Public methodStatic memberFromFileSystem(FileSystemInfo)
Creates an instance of a ShellItemId from a FileSystemInfo instance. Note the PIDL created is internal to ShellBoost, it cannot be used as a standard Windows Shell PIDL.
Public methodStatic memberFromFileSystem(String, FileAttributes)
Creates an instance of a ShellItemId from a file system name and attributes. Note the PIDL created is internal to ShellBoost, it cannot be used as a standard Windows Shell PIDL.
Public methodStatic memberFromPayload(Byte)
Creates an instance of a ShellItemId from a byte array representing a payload (without a header).
Public methodStatic memberFromPayload(Byte, Int32)
Creates an instance of a ShellItemId from a byte array representing a payload (without a header).
Public methodStatic memberFromPayload(Byte, Int32, Int32)
Creates an instance of a ShellItemId from a byte array representing a payload (without a header).
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ObjectGetHashCode.)
Protected methodGetPayload
Gets the payload, which is the Data without the Header.
Public methodTryGetFileSystemName(String)
Tries to get a file system name from this instance. Only supported for file system PIDLs created by ShellBoost, using ShellItemId.FromFileSystem or ShellItem's constructors with FileInfo or DirectoryInfo parameters.
Public methodTryGetFileSystemName(String, SFGAO)
Tries to get a file system name and attributes from this instance. Only supported for file system PIDLs created by ShellBoost, using ShellItemId.FromFileSystem or ShellItem's constructors with FileInfo or DirectoryInfo parameters.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Implements the == operator.
Public operatorStatic memberInequality
Implements the != operator.
Top
Fields
  NameDescription
Public fieldStatic memberHeaderSize
The SHITEMID structure header size which is 2 (bytes).
Public fieldStatic memberTerminator
The terminator instance, an array of two zero bytes.
Top
See Also