Share via


CookieHeaderValue.TryParse Method

Indicates a value whether the string representation will be converted.

Namespace:  System.Net.Http.Headers
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

Syntax

'Declaration
Public Shared Function TryParse ( _
    input As String, _
    <OutAttribute> ByRef parsedValue As CookieHeaderValue _
) As Boolean
'Usage
Dim input As String 
Dim parsedValue As CookieHeaderValue 
Dim returnValue As Boolean 

returnValue = CookieHeaderValue.TryParse(input, _
    parsedValue)
public static bool TryParse(
    string input,
    out CookieHeaderValue parsedValue
)
public:
static bool TryParse(
    String^ input, 
    [OutAttribute] CookieHeaderValue^% parsedValue
)
static member TryParse : 
        input:string * 
        parsedValue:CookieHeaderValue byref -> bool
public static function TryParse(
    input : String, 
    parsedValue : CookieHeaderValue
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the string representation will be converted; otherwise, false.

See Also

Reference

CookieHeaderValue Class

System.Net.Http.Headers Namespace