tcomIAttributes Interface Reference

Collection of attributes. More...

List of all members.

Public Member Functions

HRESULT _NewEnum ([out, retval] IUnknown **ppEnum)
 Enumerator for attribute objects.
HRESULT Item ([in] VARIANT *pvaIndex,[out, retval] VARIANT *pvaItem)
 Return item.
HRESULT AddAttribute ([in] BSTR name,[in] BSTR value,[out, retval] tcomIAttribute **ppAttribute)
 Add attribute.
HRESULT RemoveAttribute ([in] BSTR name)
 Delete attribute.

Properties

VARIANT Count [get]
 Return number of attributes.


Detailed Description

Collection of attributes.

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


Member Function Documentation

HRESULT _NewEnum ( [out, retval] IUnknown **  ppEnum  ) 

Enumerator for attribute objects.

Enumerated object are of type tcomIAttribute

Return values:
ppEnum Attribute enumerator

HRESULT AddAttribute ( [in] BSTR  name,
[in] BSTR  value,
[out, retval] tcomIAttribute **  ppAttribute 
)

Add attribute.

Add attribute to the collection

HRESULT Item ( [in] VARIANT *  pvaIndex,
[out, retval] VARIANT *  pvaItem 
)

Return item.

Parameters:
pvaIndex Index (0...count-1) or name of the attribute. Index have to be integer, name is string.
Return values:
pvaItem Return attribute.

HRESULT RemoveAttribute ( [in] BSTR  name  ) 

Delete attribute.

Delete attribute from the collection


Property Documentation

VARIANT Count [get]

Return number of attributes.

Return values:
count Number of attributes


Generated on Thu Aug 27 12:37:14 2009 for Tahiti COM API