C#

using DotNetBrowser;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CookieSample
{
    class Program
    {
        static void Main(string[] args)
        {
            using (Browser browser = BrowserFactory.Create())
            {
                CookieStorage cookieStorage = browser.CookieStorage;
                List<Cookie> cookies = cookieStorage.GetAllCookies();
                foreach (Cookie cookie in cookies)
                {
                    Console.Out.WriteLine("cookie = " + cookie);
                }
            }
        }
    }
}

VB.NET

Imports DotNetBrowser

Module CookieSample
    Sub Main(ByVal args As String())
        Using browser As Browser = BrowserFactory.Create()
            Dim cookieStorage As CookieStorage = browser.CookieStorage
            Dim cookies As List(Of Cookie) = cookieStorage.GetAllCookies()

            For Each cookie As Cookie In cookies
                Console.Out.WriteLine("cookie = " & cookie.ToString())
            Next
        End Using
    End Sub
End Module