共用方式為


SPWebService.PluggableParsers property

可使用此 Web 服務的文件剖析器組。

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

Syntax

'宣告
Public ReadOnly Property PluggableParsers As Dictionary(Of String, SPDocumentParser)
    Get
'用途
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

下列程式碼範例會登錄自訂文件剖析器將它新增至PluggableParsers屬性所傳回的集合。

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()

請參閱

參照

SPWebService class

SPWebService members

Microsoft.SharePoint.Administration namespace

SPDocumentParser