WebService.Server Property


Gets the HttpServerUtility for the current request.

Namespace:   System.Web.Services
Assembly:  System.Web.Services (in System.Web.Services.dll)

public HttpServerUtility Server {
		Level = AspNetHostingPermissionLevel.Minimal)]

Property Value

Type: System.Web.HttpServerUtility

An HttpServerUtility object.

The HttpServerUtility class provides several methods that can be used in the processing of Web requests, including CreateObject (for instantiating COM objects).

The example below returns the computer name of the Web server using the Server property.

.NET Framework
Available since 1.1
Return to top