VB.Net Tutorial/Socket Network/Cookie — различия между версиями

Материал из VB Эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Текущая версия на 12:55, 26 мая 2010

Create a Cookie and print out its properties

Imports System.Net
Imports System.Net.Sockets
Public Class Tester
    Public Shared Sub Main
        Dim cookie As System.Net.Cookie = New Cookie("HASH", "", "/", "microsoft.ru")
        Console.WriteLine("Comment: " & cookie.rument.ToString)
        Console.WriteLine("Domain: " & cookie.Domain.ToString)
        Console.WriteLine("Expired: " & cookie.Expired.ToString)
        Console.WriteLine("Expires: " & cookie.Expires.ToString)
        Console.WriteLine("Name: " & cookie.Name.ToString)
        Console.WriteLine("Path: " & cookie.Path.ToString)
        Console.WriteLine("Port: " & cookie.Port.ToString)
        Console.WriteLine("Secure: " & cookie.Secure.ToString)
        Console.WriteLine("Value: " & cookie.Value.ToString)
        Console.WriteLine("Version: " & cookie.Version.ToString)
    End Sub
End Class
Comment:
Domain: microsoft.ru
Expired: False
Expires: 01/01/0001 12:00:00 AM
Name: HASH
Path: /
Port:
Secure: False
Value:
Version: 0