WIAPropertyStorageMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

WIAPropertyStorageMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Image Capture MBS Win Plugin 10.3 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The WIAPropertyStorageMBS class manages the persistent properties of a single property set.
Example
dim DeviceManager as new WIADeviceManager1MBS

if 0 = DeviceManager.Handle then
MsgBox "Failed to initialize device manager."
else
dim it as WIAItemMBS = DeviceManager.SelectDeviceDialog(window1, DeviceManager.kDeviceTypeDefault, DeviceManager.kSelectDeviceNoDefault)

if it<>Nil then
dim p as WIAPropertyStorageMBS = it.PropertyStorage
dim name as string = p.Read(p.kItemPropertyItemNameString)
MsgBox name
end if
end if

Persistent properties consist of information that can be stored persistently in a property set, such as the summary information associated with a file. This contrasts with run-time properties associated with Controls and Automation, which can be used to affect system behavior. Use the methods of the WIAPropertyStorageMBS interface to create or open a persistent property set. An instance of the WIAPropertyStorageMBS interface can manage zero or more WIAPropertyStorageMBS instances.

Each property within a property set is identified by a property identifier (ID), a integer value unique to that set. You can also assign a string name to a property through the WIAPropertyStorageMBS interface.

The automatic conversion to variant supports:
nil, integer, uint32, int64, uint64, single, double, boolean, string and WIAGUIDMBS.

The automatic conversion from variant supports:
integer, boolean, single, double, Int64, string and WIAGUIDMBS.

This class has no sub classes.

Some methods using this class:

Some examples using this class:


The items on this page are in the following plugins: MBS Win Plugin.


WIAPropertyMBS   -   WIAStreamMBS


💬 Ask a question or report a problem