CanEasy COM-Help
CanEasy::IAttrCol Interface Reference
Inheritance diagram for CanEasy::IAttrCol:
CanEasy::ICol

Detailed Description

Collection of attributes

interface IAttrCol : ICol
{
HRESULT Item([in] VARIANT vIndex, [out, retval] IAttribute**);
HRESULT AddAttr([in] BSTR sName, [in] enum AttrType enType, [in] VARIANT vValue, [out, retval] IAttribute**);
HRESULT AddEnumAttr([in] BSTR sName, [in] VARIANT vEnum, [in] long lVal, [out, retval] IAttribute**);
HRESULT AddItem(IDatabaseItem* pData);
};

Definition at line 2844 of file cand_tlb.idl.

Member Function Documentation

◆ AddAttr()

HRESULT CanEasy::IAttrCol::AddAttr ( [in] BSTR  sName,
[in] enum AttrType  enType,
[in] VARIANT  vValue,
[out, retval] IAttribute **   
)

Adds a new attribute

Parameters
sNameName of the new attribute
enTypeType of the attribute
vValuevalue of the attribute
Returns
Pointer to the new created attribute

◆ AddEnumAttr()

HRESULT CanEasy::IAttrCol::AddEnumAttr ( [in] BSTR  sName,
[in] VARIANT  vEnum,
[in] long  lVal,
[out, retval] IAttribute **   
)

Deprecated: Adds a new attribute with value table.

Attribute can have value tables like signals.

◆ AddItem()

HRESULT CanEasy::IAttrCol::AddItem ( IDatabaseItem pData)

Adds an already existing attribute to the collections.

Property Documentation

◆ Item

IAttribute CanEasy::IAttrCol::Item([in] VARIANT vIndex)
get

Returns an attribute by name or index

CanEasy::IAttrCol::AddAttr
HRESULT AddAttr([in] BSTR sName, [in] enum AttrType enType, [in] VARIANT vValue, [out, retval] IAttribute **)
CanEasy::IAttrCol::AddEnumAttr
HRESULT AddEnumAttr([in] BSTR sName, [in] VARIANT vEnum, [in] long lVal, [out, retval] IAttribute **)
Deprecated: Adds a new attribute with value table.
CanEasy::AttrType
AttrType
Deprecated: The AttrType enumeration defines value types of attributes.
Definition: cand_tlb.idl:152
CanEasy::IAttrCol::AddItem
HRESULT AddItem(IDatabaseItem *pData)
CanEasy::IAttrCol::Item
IAttribute Item([in] VARIANT vIndex)