Gets the HttpServerUtility for the current request.

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

Syntax
[BrowsableAttribute(false)]
public HttpServerUtility Server {
	[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, 
		Level = AspNetHostingPermissionLevel.Minimal)]
	get;
}
public:
[BrowsableAttribute(false)]
property HttpServerUtility^ Server {
	[AspNetHostingPermissionAttribute(SecurityAction::LinkDemand, 
		Level = AspNetHostingPermissionLevel::Minimal)]
	HttpServerUtility^ get();
}
[<BrowsableAttribute(false)>]
member Server : HttpServerUtility with get
<BrowsableAttribute(False)>
Public ReadOnly Property Server As HttpServerUtility

Property Value

Type:

An HttpServerUtility object.

Remarks

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

Examples

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


  
Version Information
.NET Framework
Available since 1.1
Return to top