Allows to set a credentials to work with password protected HTML documents, e.g. set userName and password

Namespace:  SautinSoft
Assembly:  SautinSoft.PdfVision (in SautinSoft.PdfVision.dll) Version: 5.1.2.13

Syntax

      
 C#  Visual Basic 
public CookieContainer Cookies { get; set; }
Public Property Cookies As CookieContainer

Examples

CopyC#
SautinSoft.PdfVision v = new SautinSoft.PdfVision();
string url = "http://www.google.com";
CookieContainer myCookies = new CookieContainer();
Cookie userName = new Cookie("username", "bob");
myCookies.Add(new Uri(url), userName);
Cookie password = new Cookie("password", "bobpassword");
myCookies.Add(new Uri(url), password);
v.Cookies = myCookies;

See Also