Export (0) Print
Expand All
Expand Minimize

SPWebService.PluggableParsers Property

The set of document parsers available to this Web service.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

public Dictionary<string, SPDocumentParser> PluggableParsers { get; }

The following code example registers a custom document parser by adding it to the collection returned by the PluggableParsers property.

SPFarm farm = SPFarm.Local;
SPWebService service = farm.Services.GetValue<SPWebService>();
SPDocumentParser customParser = new SPDocumentParser(CUSTOMPARSER_PROGID, extension);
service.PluggableParsers.Add(extension, customParser);
service.Update();

Community Additions

ADD
Show:
© 2014 Microsoft