IParserProperty.SetValueFromString 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.
Sets the value of a document property from the specified string.
HRESULT SetValueFromString(
Parameters
val
[in] The value to set the document property to.
pvtHint
[in] The document property's data type.
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 property is 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
If Windows SharePoint Services cannot determine the data type, it assigns to the property the data type specified in the pvtHint parameter. If the data type specified in the pvtHint parameter does not match the value specified, the method returns an error.