Same as DownloadString(String) except it correctly use the character set indicated in the response to decode the string. Otherwise it uses Encoding.

Namespace: MonoSoftware.Web
Assembly: MonoSoftware.Web (in MonoSoftware.Web.dll) Version: 1.0.40.661 (1.0.40.661)

Syntax

C#
public static string DownloadStringUsingResponseEncoding(
	this WebClient client,
	string address
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function DownloadStringUsingResponseEncoding ( 
	client As WebClient,
	address As String
) As String
Visual C++
public:
[ExtensionAttribute]
static String^ DownloadStringUsingResponseEncoding(
	WebClient^ client, 
	String^ address
)
F#
static member DownloadStringUsingResponseEncoding : 
        client : WebClient * 
        address : string -> string 

Parameters

client
Type: System.Net..::..WebClient
address
Type: System..::..String

Return Value

Type: String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type WebClient. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also