Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Server Property

WebService.Server Property

Gets the HttpServerUtility for the current request.

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

[<BrowsableAttribute(false)>]
member Server : HttpServerUtility with get

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.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 3.5 SP1
Show:
© 2015 Microsoft