IRecordInfo::GetName method (oaidl.h)

Gets the name of the record type. This is useful if you want to print out the type of the record, because each UDT has its own IRecordInfo.

Syntax

HRESULT GetName(
  [out] BSTR *pbstrName
);

Parameters

[out] pbstrName

The name.

Return value

This method can return one of these values.

Return code Description
S_OK
Success.
E_OUT_OFMEMORY
Out of memory.
E_INVALIDARG
One or more of the arguments is not valid.
TYPE_E_INVALIDSTATE
The state of the type library is not valid for this operation.

Remarks

The caller must free the BSTR by calling SysFreeString.

Requirements

Requirement Value
Target Platform Windows
Header oaidl.h

See also

IRecordInfo