v2.28
IPropertyContainer Interface Reference

Represents a property container. More...

Inheritance diagram for IPropertyContainer:

Public Member Functions

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

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

◆ Contains()

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.

◆ Get()

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