TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
How to get all the word automation service application proxies in the farm
Vijai Anand Ramalingam
Feb 13, 2011
7.3
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
In this blog we will be seeing how to get all the word automation 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();
}
}
}
How to get all the word automation service application proxies in the farm
Next Recommended Reading
Programmatically get the timer jobs history for a particular service in the SharePoint 2010 farm