CookieContainer.GetCookieHeader(Uri) Метод
Определение
public:
System::String ^ GetCookieHeader(Uri ^ uri);
public string GetCookieHeader (Uri uri);
member this.GetCookieHeader : Uri -> string
Public Function GetCookieHeader (uri As Uri) As String
Параметры
Возвращаемое значение
Заголовок HTTP cookie со строками, представляющими экземпляры Cookie, разделенными точками с запятыми.An HTTP cookie header, with strings representing Cookie instances delimited by semicolons.
Исключения
uri
имеет значение null
.uri
is null
.
Комментарии
GetCookieHeader Возвращает строку, содержащую заголовок HTTP cookie для Cookie экземпляров, указанных параметром uri
.GetCookieHeader returns a string that holds the HTTP cookie header for the Cookie instances specified by uri
. Заголовок HTTP создается путем добавления строкового представления каждого, Cookie связанного с uri
.The HTTP header is built by adding a string representation of each Cookie associated with uri
. Обратите внимание, что точный формат строки зависит от RFC, которому Cookie соответствует.Note that the exact format of the string depends on the RFC that the Cookie conforms to. Строки для всех Cookie экземпляров, связанных с, uri
объединяются и разделяются точками с запятой.The strings for all the Cookie instances that are associated with uri
are combined and delimited by semicolons.
Эта строка имеет неправильный формат для использования в качестве второго параметра SetCookies метода.This string is not in the correct format for use as the second parameter of the SetCookies method.