IParserProperty.GetValueType Method

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Returns the data type of the document property.

HRESULT GetValueType(

Parameters

pitypet

[out] The value type of the document property.

Possible values are:

pvtNull

The value type is empty or null.

pvtNumber

The property's data type is Integer.

pvtDouble

The property's data type is Double.

pvtDateTime

The property's data type is DateTime.

pvtBoolean

The property's data type is Boolean.

pvtShortText

The property's data type is String, and is less than 256 characters in length.

pvtLongText

The property's data type is String, and is longer than 256 characters in length.

cpvtMax

The maximum length of a text string.

Return Value

The IParserProperty Class methods return typical HRESULT values. In general, the method should return a positive OK value when successful or a negative FAIL value when unsuccessful.

Remarks

For IParserProperty Class methods, all output parameters of type LPCSTR are valid only as long as the IParserProperty interface pointer remains valid. The method caller should never change or free the memory pointed to by any output parameters of type LPCSTR.

If you call an IParserProperty.Set<datatype> method, then any previously returned output LCPSTR parameter may no longer be valid.

See Also

Reference

IParserProperty Class

Concepts

Custom Document Parsers

Document Parser Interface Overview