C# Class OpenQA.Selenium.Internal.ReturnedCookie

Represents a cookie returned to the driver by the browser.
Inheritance: Cookie
Afficher le fichier Open project: epall/selenium Class Usage Examples

Méthodes publiques

Méthode Description
ReturnedCookie ( string name, string value, string domain, string path, System.DateTime expiry, bool isSecure, Uri currentUrl ) : System

Initializes a new instance of the ReturnedCookie class with a specific name, value, domain, path and expiration date.

ToString ( ) : string

Creates and returns a string representation of the current cookie.

Méthodes protégées

Méthode Description
Validate ( ) : void

Validates the cookie is correctly formed.

Method Details

ReturnedCookie() public méthode

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.
Résultat System

ToString() public méthode

Creates and returns a string representation of the current cookie.
public ToString ( ) : string
Résultat string

Validate() protected méthode

Validates the cookie is correctly formed.
protected Validate ( ) : void
Résultat void