WebService::Server Property
.NET Framework (current version)
Gets the HttpServerUtility for the current request.
Assembly: System.Web.Services (in System.Web.Services.dll)
public: [BrowsableAttribute(false)] property HttpServerUtility^ Server { [AspNetHostingPermissionAttribute(SecurityAction::LinkDemand, Level = AspNetHostingPermissionLevel::Minimal)] HttpServerUtility^ get(); }
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
Available since 1.1
Show: