This post will help you to know about the various parsers present your SharePoint. This is a console application which will help you to know about what all file extensions SharePoint can recognize.
CODE SNIPPET
class Program
{
static void Main(string[] args)
{
SPWebService service = SPWebService.ContentService;
Dictionary<string, SPDocumentParser> parsers = service.PluggableParsers;
Dictionary<string, SPDocumentParser>.KeyCollection keys = parsers.Keys;
Console.WriteLine("Ext ProgID");
Console.WriteLine("--- ------");
foreach (string key in keys)
{
Console.WriteLine("{0,-7} {1}", parsers[key].FileExtension, parsers[key].ProgId);
}
Console.Write("\nPress ENTER to continue...");
Console.ReadLine();
}
}
OUTPUT
No comments:
Post a Comment