v2.33
 
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.
 
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.
 
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 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 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