WebService::Server Property

 

Gets the HttpServerUtility for the current request.

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

public:
[BrowsableAttribute(false)]
property HttpServerUtility^ Server {
	[AspNetHostingPermissionAttribute(SecurityAction::LinkDemand, 
		Level = AspNetHostingPermissionLevel::Minimal)]
	HttpServerUtility^ 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.

.NET Framework
Available since 1.1
Return to top
Show: