HttpWorkerRequest.GetServerName Method ()


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

When overridden in a derived class, returns the name of the local server.

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

public virtual string GetServerName()

Return Value

Type: System.String

The name of the local server.

.NET Framework
Available since 1.1
Return to top