ProcessLink

Applies to: SharePoint Foundation 2010

Returns the correct value for a document property that is a Microsoft SharePoint Foundation link.

HRESULT ProcessLink(
   LPCSTR szName,
   IParserProperty **ppiprop
);

Parameters

val

[in] The current value of the document property that is a SharePoint Foundation link.

pval

[out] The correct value of the document property that is a SharePoint Foundation link.

Return Value

The IParserPropertyBag 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

If the value of the pval parameter differs from the value of the val parameter, the custom parser should update the property in the document to the value of *pval.

The method caller should not change or free the memory that *pval points to. The *pval parameter is valid only until the next time the ProcessLink method is called.

SharePoint Foundation maintains an ordered set of links in a document. When SharePoint Foundation is fixing links, it returns the value of pval in that order. Therefore it is important that, for the same content, the document parser always calls the ProcessLink method the same number of times and always in the same order.

See Also

Reference

IParserPropertyBag Interface

Concepts

Custom Document Parsers

Document Parser Interface Overview