Adds an object to the collection.
public:
HRESULT AddElement(
IUnknown *pUnkElement
)
pUnkElement
Type: IUnknown *
[in, optional]
Pointer to the object’s IUnknown interface.
Type: HRESULT
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
| S_OK | The method succeeded. |
Refer to Media Foundation return codes.
If pUnkElement is NULL, a NULL pointer is added to the collection.
Header: Declared in mfobjects.h (include mfidl.h).
Library: Use mfuuid.lib.