IInkExtendedProperties::Remove method (msinkaut.h)

Removes the IInkExtendedProperty object from the IInkExtendedProperties collection.

Syntax

HRESULT Remove(
  [in] VARIANT Identifier
);

Parameters

[in] Identifier

The identifier of the IInkExtendedProperty object to remove from the collection. The identifier can be a globally unique identifier (GUID), an index, or an extended property object.

For more information about the VARIANT structure, see Using the COM Library.

Return value

This method can return one of these values.

Return code Description
S_OK
Success.
E_POINTER
A parameter contained an invalid pointer.
CO_E_CLASSSTRING
Invalid GUID format.
TPC_E_INVALID_PROPERTY
Property could not be found (invalid GUID or index).
E_INK_EXCEPTION
An exception occurred inside the method.
E_FAIL
An unspecified error occurred.
E_INVALIDARG
Invalid display handle.
E_UNEXPECTED
Unexpected parameter or property type.

Remarks

This method removes only the extended property from a snapshot of, or reference to, the ink data and does not remove the actual ink data.

The Identifier parameter can be a BSTR, a LONG, or an IDispatch. Use a BSTR for the GUID of the property, a LONG for the index of the property, and an IDispatch for a reference to a specific property. To specify the GUID of the property when you are using late binding, such as when you use a scripting language, you must pass in the argument as a STRING literal and not use a variable.

For more information about the BSTR data type, see Using the COM Library.

Requirements

Requirement Value
Minimum supported client Windows XP Tablet PC Edition [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header msinkaut.h
Library InkObj.dll

See also

IInkExtendedProperties Interface