C# Dialect to PowerShell
how 1 work following statement c# in powershell
c#:
searchqueryandsitesettingsserviceproxy settingsproxy = spfarm.local.serviceproxies.getvalue<searchqueryandsitesettingsserviceproxy>();
powershell:
[microsoft.office.server.search.administration.searchqueryandsitesettingsserviceproxy]$settingsproxy = [microsoft.sharepoint.administration.spfarm]::local.serviceproxies.getvalue[microsoft.office.server.search.administration.searchqueryandsitesettingsserviceproxy]()
the above line in powershell not work. not sure of how work kind of objects. here reference c# class reference http://msdn.microsoft.com/en-us/library/ms461135.aspx
any appreciated.
cross posted here http://social.technet.microsoft.com/forums/en-us/sharepoint2010programming/thread/8a6a3aef-73cb-4b37-8705-1ad59016b696
sameer dhoot
blog : http://sharemypoint.in/
did load microsoft.sharepoint
[void][system.reflection.assembly]::loadwithpartialname("microsoft.sharepoint")
Windows Server > Windows PowerShell
Comments
Post a Comment