OpenQA.Selenium.Internal.ReturnedCookie.ToString C# (CSharp) 메소드

ToString() 공개 메소드

Creates and returns a string representation of the current cookie.
public ToString ( ) : string
리턴 string
        public override string ToString()
        {
            return Name + "=" + Value
                + (Expiry == null ? string.Empty : "; expires=" + Expiry.Value.ToUniversalTime().ToString("ddd MM/dd/yyyy HH:mm:ss UTC", CultureInfo.InvariantCulture))
                    + (string.IsNullOrEmpty(Path) ? string.Empty : "; path=" + Path)
                    + (string.IsNullOrEmpty(Domain) ? string.Empty : "; domain=" + Domain)
                    + (isSecure ? ";secure;" : string.Empty);
        }