Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

AdminProxy Class

This class provides a starting point for getting an IUpdateServer, which is used to communicate with the WSUS server.


Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
[ComVisibleAttribute(true)] 
[ClassInterfaceAttribute(ClassInterfaceType.None)] 
[GuidAttribute("6391AFBB-45A8-4107-A154-F27DB8F03049")] 
public sealed class AdminProxy
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute ClassInterfaceAttribute(ClassInterfaceType.None) */ 
/** @attribute GuidAttribute("6391AFBB-45A8-4107-A154-F27DB8F03049") */ 
public final class AdminProxy
ComVisibleAttribute(true) 
ClassInterfaceAttribute(ClassInterfaceType.None) 
GuidAttribute("6391AFBB-45A8-4107-A154-F27DB8F03049") 
public final class AdminProxy

The following is an example in Visual Basic of the use of one of the static (shared in Visual Basic) methods to get an IUpdateServer representing a local WSUS server.

Dim iUpdateServer as IUpdateServer
iUpdateServer = AdminProxy.GetUpdateServer

The following is an example in Visual Basic of the use of the non-static method to get a IUpdateServer representing a local WSUS server.

Dim iUpdateServer as IUpdateServer
Dim proxy as New AdminProxy
iUpdateServer = AdminProxy.GetUpdateServer

AdminProxy has both static (shared in Visual Basic) and non-static methods for getting a IUpdateServer. If you use any of the static GetUpdateServer methods to retrieve an interface to the WSUS server, you will not have to instantiate an instance of AdminProxy. However, if you use the non-static GetUpdateServerInstance method, then you must use the new keyword to create an instance of AdminProxy.

Aa354254.Important(en-us,VS.85).gifImportant
This class is not thread safe.


System.Object
  Microsoft.UpdateServices.Administration.AdminProxy
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Server 2008 R2
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.