CookieContainer.GetCookieHeader(Uri) Methode
Definition
public:
System::String ^ GetCookieHeader(Uri ^ uri);
public string GetCookieHeader (Uri uri);
member this.GetCookieHeader : Uri -> string
Parameter
Gibt zurück
Ein HTTP-Cookieheader mit durch Semikolon getrennten Zeichenfolgen, die die Cookie-Instanzen darstellen.An HTTP cookie header, with strings representing Cookie instances delimited by semicolons.
Ausnahmen
uri
ist null
.uri
is null
.
Hinweise
GetCookieHeadergibt eine Zeichenfolge zurück, die den HTTP-Cookie Cookie -Header für uri
die durch angegebenen Instanzen enthält.GetCookieHeader returns a string that holds the HTTP cookie header for the Cookie instances specified by uri
. Der-HTTP-Header wird erstellt, indem eine Zeichen folgen Cookie Darstellung der uri
einzelnen zugeordnet wird.The HTTP header is built by adding a string representation of each Cookie associated with uri
. Beachten Sie, dass das genaue Format der Zeichenfolge von der RFC abhängt Cookie , der der entspricht.Note that the exact format of the string depends on the RFC that the Cookie conforms to. Die Zeichen folgen für alle Cookie -Instanzen, die uri
zugeordnet sind, werden kombiniert und durch Semikolons getrennt.The strings for all the Cookie instances that are associated with uri
are combined and delimited by semicolons.
Diese Zeichenfolge weist nicht das richtige Format für die Verwendung als zweiten Parameter der SetCookies -Methode auf.This string is not in the correct format for use as the second parameter of the SetCookies method.