다음을 통해 공유


Properties object

Contains a collection of all the Property objects associated with a given Device, DeviceInfo, Filter, ImageFile, or Item object. See the Properties property on any of these objects for details about accessing the Properties object.

Members

The Properties object has these types of members:

Methods

The Properties object has these methods.

Method Description
Exists Indicates whether the specified Property exists in the collection.

Properties

The Properties object has these properties.

Property Access type Description
Count (Properties)
Read-only
Retrieves the number of members in the Properties collection.
Item (Properties)
Read-only
Retrieves the specified item in the Properties collection either by position or name.

Remarks

Due to the dynamic nature of imaging devices, filters, and image files, the exact collection of Property objects can be very different. Further, Property objects are not guaranteed to be in any particular order from one instance of an object to the next.

Creation\Access Functions

Use any of the following to retrieve a reference to the object:

Properties (ImageFile)

Properties (Filter)

Properties (Item)

Properties (DeviceInfo)

Properties (Device)

Examples

The following sample shows how to enumerate all the properties on a selected device.

Dim dev 'As Device
Dim p 'As Property
Dim s 'As String

Set dev = CommonDialog1.ShowSelectDevice

For Each p In dev.Properties
    s = p.Name & "(" & p.PropertyID & ")"
    MsgBox s
Next

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 R2 [desktop apps only]
Header
Wiaaut.h
IDL
Wiaaut.idl

See also

Reference

Properties (Device)

Properties (DeviceInfo)

Properties (Filter)

Properties (ImageFile)

Properties (Item)