Share via


SPWebService.PluggableParsers property

The set of document parsers available to this Web service.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Property PluggableParsers As Dictionary(Of String, SPDocumentParser)
    Get
'Usage
Dim instance As SPWebService
Dim value As Dictionary(Of String, SPDocumentParser)

value = instance.PluggableParsers
public Dictionary<string, SPDocumentParser> PluggableParsers { get; }

Property value

Type: System.Collections.Generic.Dictionary<String, SPDocumentParser>

Examples

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();
Dim farm As SPFarm = SPFarm.Local
Dim service As SPWebService = farm.Services.GetValue(Of SPWebService)()
Dim customParser As New SPDocumentParser(CUSTOMPARSER_PROGID, extension)
service.PluggableParsers.Add(extension, customParser)
service.Update()

See also

Reference

SPWebService class

SPWebService members

Microsoft.SharePoint.Administration namespace

SPDocumentParser