NScrapeExtensionsGetResponseText Method |
Namespace:
NScrape
Assembly:
NScrape (in NScrape.dll) Version: 0.4.1.0
Syntax public static string GetResponseText(
this HttpWebResponse webResponse,
Encoding encoding = null
)
<ExtensionAttribute>
Public Shared Function GetResponseText (
webResponse As HttpWebResponse,
Optional encoding As Encoding = Nothing
) As String
public:
[ExtensionAttribute]
static String^ GetResponseText(
HttpWebResponse^ webResponse,
Encoding^ encoding = nullptr
)
[<ExtensionAttribute>]
static member GetResponseText :
webResponse : HttpWebResponse *
?encoding : Encoding
(* Defaults:
let _encoding = defaultArg encoding null
*)
-> string
Parameters
- webResponse
- Type: System.NetHttpWebResponse
The HttpWebResponse to read.
- encoding (Optional)
- Type: System.TextEncoding
The encoding to be used. If omitted, the encoding specified in the web response shall be used.
Return Value
Type:
String
A
String that represents the text of an
HttpWebResponse.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
HttpWebResponse. 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