SPDocumentParser Class
Base class that supports property promotion and demotion for HTML documents.
System.Object
Microsoft.SharePoint.Administration.SPAutoSerializingObject
Microsoft.SharePoint.Administration.SPDocumentParser
Microsoft.SharePoint.Administration.SPAutoSerializingObject
Microsoft.SharePoint.Administration.SPDocumentParser
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Use the PluggableParsers property of the SPWebService class to return the collection of document parsers that are implemented in a Web service.
The following example iterates through the collection of document parsers used within a Web service to display their properties.
SPWebService webService = new SPWebService("lwswss1", SPFarm.Local); System.Collections.Generic.Dictionary<string, SPDocumentParser> myParsers = webService.PluggableParsers; System.Collections.Generic.Dictionary<string, SPDocumentParser>.KeyCollection myKeys = myParsers.Keys; foreach (string key in myKeys) { Response.Write("Class ID = " + myParsers[key].ClassId.ToString() + " File Extension = " + myParsers[key].FileExtension + " ProgID = " + myParsers[key].ProgId + "<BR>");