IRecordInfo::RecordClear Function

Releases object references and other values of a record without deallocating the record.

HRESULT RecordClear(  
  PVOID  pvExisting
);

pvExisting

[in] Pointer to the record to be cleared.

The return value obtained from the returned HRESULT is one of the following:

Return value

Meaning

S_OK

Success.

E_INVALIDARG

One or more of the arguments is invalid.

RecordClear releases memory blocks held by VT_PTR or VT_SAFEARRAY instance fields. The caller needs to free the instance fields memory, RecordClear will do nothing if there are no resources held.

Show: