Get

HRESULT Get(
VARIANT& var) const;

Parameters

var

Variant to receive the byte array.

Return Code

S_OK

Method succeeded.

E_OUTOFMEMORY

Returned if allocation failed.

DISPID_E_ARRAYISLOCKED

Returned if the Variant contained a locked array.

DISPID_E_BADVARTYPE

Returned if the Variant contained an invalid type.

E_INVALIDARG

Returned if the Variant is not initialized properly.

Comments

Copies bookmark data to the Variant as a byte array. The Variant must be previously initialized. The Variant is cleared before being set. If the bookmark is not initialized, then the Variant is left cleared.