v2.4
IPropertyContainer Interface Reference

Represents a property container. More...

Inheritance diagram for IPropertyContainer:

Public Member Functions

HRESULT Get ([in] GUID propertyId, [out, retval] IProperty **ppProperty)
 Returns the property specified by the identifier. More...
 
HRESULT Contains ([in] GUID propertyId, [out, retval] VARIANT_BOOL *pContains)
 Indicates whether the object has the property specified by the identifier. More...
 
HRESULT GetS ([in] BSTR propertyId, [out, retval] IProperty **ppProperty)
 Same as IPropertyContainer::Get, but accepting GUID as a string.
 
HRESULT ContainsS ([in] BSTR propertyId, [out, retval] VARIANT_BOOL *pContains)
 Same as IPropertyContainer::Contains, but accepting GUID as a string.
 
HRESULT GetIds ([out, retval] IGuidCollection **ppIds)
 Returns the collection of identifiers of all assigned properties.
 

Detailed Description

Represents a property container.

Using this interface you can access properties of a model object. It can be obtained from a model object via the IModelObject::GetProperties() method.

See also
IProperty, IModelObject

Member Function Documentation

HRESULT IPropertyContainer::Contains ( [in] GUID  propertyId,
[out, retval] VARIANT_BOOL *  pContains 
)

Indicates whether the object has the property specified by the identifier.

Parameters
[in]propertyIdThe identifier of the property.
[out]pContainsTRUE if the object supports the property; otherwise returns FALSE.
HRESULT IPropertyContainer::Get ( [in] GUID  propertyId,
[out, retval] IProperty **  ppProperty 
)

Returns the property specified by the identifier.

Parameters
[in]propertyIdThe identifier of the property.
[out]ppPropertyThe property of the object, or nullptr if the object doesn't have the requested property.
See also
IProperty