SPWebService.PluggableParsers - Propriété
Le jeu d'analyseurs de document disponibles pour ce service Web.
Espace de noms : Microsoft.SharePoint.Administration
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
Public ReadOnly Property PluggableParsers As Dictionary(Of String, SPDocumentParser)
Get
'Utilisation
Dim instance As SPWebService
Dim value As Dictionary(Of String, SPDocumentParser)
value = instance.PluggableParsers
public Dictionary<string, SPDocumentParser> PluggableParsers { get; }
Valeur de propriété
Type : System.Collections.Generic.Dictionary<String, SPDocumentParser>
Exemples
L'exemple de code suivant inscrit un analyseur de document personnalisé en l'ajoutant à la collection retournée par la propriété 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()