System.Net.WebHeaderCollection.Get C# (CSharp) Метод

Get() публичный Метод

public Get ( int index ) : string
index int
Результат string
        public override string Get(int index) { throw null; }
        public override string Get(string name) { throw null; }

Same methods

WebHeaderCollection::Get ( string name ) : string

Usage Example

Пример #1
0
        void FillCookies()
        {
            if (webHeaders == null)
            {
                return;
            }

            //
            // Don't terminate response reading on bad cookie value
            //
            string value;

            try {
                value = webHeaders.Get("Set-Cookie");
                if (value != null && SetCookie(value))
                {
                    return;
                }
            } catch {
            }

            try {
                value = webHeaders.Get("Set-Cookie2");
                if (value != null)
                {
                    SetCookie(value);
                }
            } catch {
            }
        }
All Usage Examples Of System.Net.WebHeaderCollection::Get