Compartir a través de


AdminProxy.GetUpdateServer Method ()

 

Applies To: Windows Server Update Services

Gets an IUpdateServer object that represents the local WSUS server.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

public static IUpdateServer GetUpdateServer()
public:
static IUpdateServer^ GetUpdateServer()
static member GetUpdateServer : unit -> IUpdateServer
Public Shared Function GetUpdateServer As IUpdateServer

Return Value

Type: Microsoft.UpdateServices.Administration.IUpdateServer

An object that implements the IUpdateServer interface.

Exceptions

Exception

Condition

WebException

The server could not be contacted.

Remarks

After getting IUpdateServer, you should call PreferredCulture to specify the language code that WSUS uses to return strings.

See Also

GetUpdateServer Overload
AdminProxy Class
Microsoft.UpdateServices.Administration Namespace

Return to top