Compartilhar 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)
Available in Sandboxed Solutions: No

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