GetValueType
Applies to: SharePoint Foundation 2010
Returns the data type of the document property.
HRESULT GetValueType(
int *pitype
);
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 shorter than 256 characters in length.
pvtLongText
The property's data type is String, and is 256 characters in length or longer.
cpvtMax
The maximum length of a text string.
Return Value
The IParserProperty Interface 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 Interface 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 that is pointed to by any output parameters of type LPCSTR.
If you call an IParserProperty.Set<datatype> method, any previously returned output LCPSTR parameter may no longer be valid.