Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

WIAPropertyStorageMBS class

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

if 0 = DeviceManager.Handle then
MsgBox "Failed to initialize device manager."
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.

Feedback, Comments & Corrections

This class has no sub classes.

Some methods using this class:

Some examples which use this class:

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

WIAPropertyMBS   -   WIAStreamMBS

MBS Xojo Plugins