OpenQA.Selenium.Internal.ReturnedCookie.ReturnedCookie C# (CSharp) Method

ReturnedCookie() public method

Initializes a new instance of the ReturnedCookie class with a specific name, value, domain, path and expiration date.
If the name is or an empty string, /// or if it contains a semi-colon. If the value or currentUrl is .
public ReturnedCookie ( string name, string value, string domain, string path, System.DateTime expiry, bool isSecure, Uri currentUrl ) : System
name string The name of the cookie.
value string The value of the cookie.
domain string The domain of the cookie.
path string The path of the cookie.
expiry System.DateTime The expiration date of the cookie.
isSecure bool if the cookie is secure; otherwise
currentUrl System.Uri The current the browser is viewing.
return System
        public ReturnedCookie(string name, string value, string domain, string path, DateTime? expiry, bool isSecure, Uri currentUrl)
            : base(name, value, domain, path, expiry)
        {
            this.isSecure = isSecure;
            if (currentUrl != null)
            {
                this.currentHost = currentUrl.Host;
            }
            else
            {
                throw new ArgumentNullException("currentUrl", "Current URL of ReturnedCookie cannot be null");
            }

            Validate();
        }