C# Class Yea.IO.UriExtensions

Uri Extension methods
Show file Open project: OxPatient/Rule-Engine

Public Methods

Method Description
Execute ( this url ) : Process

opens the URL in a browser

Read ( this url, WebClient client, string userName = "", string password = "", string domain = "", string authenticationType = "" ) : Stream

Reads the text content of a URL

Read ( this url, string userName = "", string password = "", string domain = "", string authenticationType = "" ) : string

Reads the text content of a URL

ReadBinary ( this url, string userName = "", string password = "", string domain = "", string authenticationType = "" ) : byte[]

Reads the content of a URL

Method Details

Execute() public static method

opens the URL in a browser
public static Execute ( this url ) : Process
url this URL to execute
return System.Diagnostics.Process

Read() public static method

Reads the text content of a URL
public static Read ( this url, WebClient client, string userName = "", string password = "", string domain = "", string authenticationType = "" ) : Stream
url 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
domain string Domain to use in network credentials
authenticationType string Authentication type to use in network credentials
return Stream

Read() public static method

Reads the text content of a URL
public static Read ( this url, string userName = "", string password = "", string domain = "", string authenticationType = "" ) : string
url this Uri to read the content of
userName string User name used in network credentials
password string Password used in network credentials
domain string Domain to use in network credentials
authenticationType string Authentication type to use in network credentials
return string

ReadBinary() public static method

Reads the content of a URL
public static ReadBinary ( this url, string userName = "", string password = "", string domain = "", string authenticationType = "" ) : byte[]
url this Uri to read the content of
userName string User name used in network credentials
password string Password used in network credentials
domain string Domain to use in network credentials
authenticationType string Authentication type to use in network credentials
return byte[]