Click or drag to resize

OnDemandDataObject Class

Represents a data object that gives information when asked to, instead of putting it in initially. This implementation doesn't store any data, only the formats referencing data.
Inheritance Hierarchy
SystemObject
  ShellBoost.CoreOnDemandDataObject

Namespace:  ShellBoost.Core
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public class OnDemandDataObject : IDisposable

The OnDemandDataObject type exposes the following members.

Constructors
  NameDescription
Public methodOnDemandDataObject
Initializes a new instance of the OnDemandDataObject class.
Top
Properties
  NameDescription
Public propertyAddDefaultFormats
Gets a value indicating whether to add CF_HDROP and CFSTR_SHELLIDLIST automatically from current shell items.
Protected propertyCookie
Gets the private cookie.
Public propertyFolder
Gets the opened Shell Folder instance.
Public propertyHwnd
Gets the owner window handle. May be IntPtr.Zero depending on context.
Public propertyItems
Gets the context shell items.
Top
Methods
  NameDescription
Public methodAddFormat
Adds a format to the object. Note the format content is genererally not defined at this moment.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Protected methodEnumerateFormats
Enumerates the available formats.
Protected methodFinalize
Finalizes an instance of the OnDemandDataObject class.
(Overrides ObjectFinalize.)
Protected methodGetCompatibleMedium
Gets a medium compatible with the given format, from an incompatible original medium.
Protected methodGetFormat
Gets a specific format.
Protected methodGetMedium
Gets a medium for this object for the specific format.
Protected methodOnMediumGet
Called when a medium is requested.
Protected methodOnMediumSet
Called when a medium is set for this object in a specific format.
Protected methodOnQueryData
Called when a format is queried for.
Public methodRemoveAllFormats
Removes all formats.
Public methodRemoveFormat(Int32)
Removes a format.
Public methodRemoveFormat(String)
Removes a format.
Protected methodSetMedium
Sets a medium for this object in a specific format.
Top
Events
  NameDescription
Public eventMediumGet
Occurs when a medium is requested. This event also happens at format level if not handled at this instance level.
Public eventMediumSet
Occurs when a medium is set for this object in a specific format.
Public eventQueryData
Occurs when a format is queried for.
Top
See Also