NScrapeExtensionsGetEncoding Method |
Namespace:
NScrape
Assembly:
NScrape (in NScrape.dll) Version: 0.4.1.0
Syntax public static Encoding GetEncoding(
this HttpWebResponse webResponse
)
<ExtensionAttribute>
Public Shared Function GetEncoding (
webResponse As HttpWebResponse
) As Encoding
public:
[ExtensionAttribute]
static Encoding^ GetEncoding(
HttpWebResponse^ webResponse
)
[<ExtensionAttribute>]
static member GetEncoding :
webResponse : HttpWebResponse -> Encoding
Parameters
- webResponse
- Type: System.NetHttpWebResponse
The HttpWebResponse for which to determine the content type.
Return Value
Type:
Encoding
The content type used by the
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).
Remarks
If no encoding was specified, the ISO-8859-1 character set is assumed.
See Also