ServerInfo.GetHtml Method

Displays information about the web server environment.

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

Syntax

'Declaration
Public Shared Function GetHtml As HtmlString
'Usage
Dim returnValue As HtmlString 

returnValue = ServerInfo.GetHtml()
public static HtmlString GetHtml()
public:
static HtmlString^ GetHtml()
static member GetHtml : unit -> HtmlString
public static function GetHtml() : HtmlString

Return Value

Type: System.Web.HtmlString
A string of name-value pairs that contains information about the web server.

Remarks

The GetHtml method returns a string that the browser displays as a set of HTML tables. For more information about the content of the tables, see the ServerInfo class overview.

Security noteSecurity Note

Because the ServerInfo class displays important information about your server that includes its operating system, the physical path of website files, and security information, you should remove any references to the ServerInfo class before you publish a web page to a production server.

See Also

Reference

ServerInfo Class

System.Web.Helpers Namespace