How to get all the word automation service application proxies in the farm


using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Text;
using
Microsoft.SharePoint;
using
Microsoft.SharePoint.Administration;
using
Microsoft.Office.Word.Server;
using
Microsoft.Office.Word.Server.Service;
namespace
WAS
{
class Program
{
static void Main(string[] args)
{
var applicationProxies = from wasProxies in SPFarm.Local.ServiceProxies
from SPServiceApplicationProxy wasProxy in wasProxies.ApplicationProxies
where wasProxy.GetType() == typeof(WordServiceApplicationProxy)
select wasProxy;
foreach (WordServiceApplicationProxy applicationProxy in applicationProxies)
{
Console.WriteLine(applicationProxy.DisplayName.ToString());
}
Console.ReadLine();
}
}
}

wasProxies.png
Ebook Download
View all
Learn
View all