tcomIAttributes

Collection of attributes.

Kind:

dual interface

IID:

{81B32863-AB45-4065-B628-0AE82BF731BD}

Help string:

tcomIAttributes Interface

Object can be used to get specific attribute or to enumerate all attributes.

Properties

Property

Type

Access

Description

Count

VARIANT

read-only

Return number of attributes

Values

VARIANT

read-only

Values of all attributes Values are stored in two dimensional array.

Methods

_NewEnum (enumerator, For Each support)

IUnknown _NewEnum()

Enumerator for attribute objects

Enumerated object are of type tcomIAttribute

Returns:

IUnknown - Attribute enumerator

DISPID:

0xfffffffc

Item

VARIANT Item(VARIANT pvaIndex)

Return item

Parameters:
  • pvaIndex (VARIANT, in) - Index (0…count-1) or name of the attribute. Index have to be integer, name is string.

Returns:

VARIANT - Return attribute.

DISPID:

2

AddAttribute

tcomIAttribute AddAttribute(BSTR name, BSTR value)

Add attribute

Add attribute to the collection

Parameters:
  • name (BSTR, in)

  • value (BSTR, in)

Returns:

tcomIAttribute

DISPID:

12

RemoveAttribute

void RemoveAttribute(BSTR name)

Delete attribute

Delete attribute from the collection

Parameters:
  • name (BSTR, in)

DISPID:

13