C# Class Utilities.IO.Extensions.UriExtensions

Uri Extension methods
Mostra file Open project: feanz/Utilities

Public Methods

Method Description
Read ( this uri, WebClient client, string userName = "", string password = "" ) : Stream

Reads the text content of a URI

Read ( this uri, string userName = "", string password = "" ) : string

Reads the text content of a URI

ReadBinary ( this uri, string userName = "", string password = "" ) : byte[]

Reads the content of a URI

Method Details

Read() public static method

Reads the text content of a URI
public static Read ( this uri, WebClient client, string userName = "", string password = "" ) : Stream
uri this The Uri to read the content of
client System.Net.WebClient WebClient used to load the data
userName string User name used in network credentials
password string Password used in network credentials
return Stream

Read() public static method

Reads the text content of a URI
public static Read ( this uri, string userName = "", string password = "" ) : string
uri this Uri to read the content of
userName string User name used in network credentials
password string Password used in network credentials
return string

ReadBinary() public static method

Reads the content of a URI
public static ReadBinary ( this uri, string userName = "", string password = "" ) : byte[]
uri this Uri to read the content of
userName string User name used in network credentials
password string Password used in network credentials
return byte[]