A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/dotnet/api/system.web.httpcookie.tryparse below:

HttpCookie.TryParse(String, HttpCookie) Method (System.Web) | Microsoft Learn

HttpCookie.TryParse(String, HttpCookie) Method Definition

Converts the specified string representation of a cookie into its HttpCookie equivalent and returns a value that indicates whether the conversion succeeded.

public:
 static bool TryParse(System::String ^ input, [Runtime::InteropServices::Out] System::Web::HttpCookie ^ % result);
public static bool TryParse(string input, out System.Web.HttpCookie result);
static member TryParse : string * HttpCookie -> bool
Public Shared Function TryParse (input As String, ByRef result As HttpCookie) As Boolean
Parameters
input
String

The string representation of a cookie.

result
HttpCookie

If the conversion succeeded, contains the HttpCookie value equivalent to the cookie contained in input. If the conversion failed, result is null. The conversion fails if the input parameter is null or empty or if a cookie name can't be determined from input. This parameter's value is overwritten by the method; the parameter is passed by reference and set to null as soon as the method is entered.

Returns

true if input was converted successfully; otherwise, false.

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4