WebService.Server Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the HttpServerUtility for the current request.

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

<BrowsableAttribute(False)>
Public ReadOnly Property Server As HttpServerUtility

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
Show: