WebRequestInformation.UserHostAddress Property

 

Gets the user host address.

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

public string UserHostAddress { get; }

Property Value

Type: System.String

The user host address.

The following code example shows how to get the user host address.

// Get the request user host address.
public string GetRequestUserHostAdddress()
{
    // Get the request user host address.
    return (string.Format(
        "Request user host address: {0}",
        RequestInformation.UserHostAddress));
}

.NET Framework
Available since 2.0
Return to top
Show: