MediaTypeHeaderValue.TryParse Method
Namespace: System.Net.Http.Headers
Assembly: System.Net.Http (in System.Net.Http.dll)
Syntax
'Declaration
Public Shared Function TryParse ( _
input As String, _
<OutAttribute> ByRef parsedValue As MediaTypeHeaderValue _
) As Boolean
'Usage
Dim input As String
Dim parsedValue As MediaTypeHeaderValue
Dim returnValue As Boolean
returnValue = MediaTypeHeaderValue.TryParse(input, _
parsedValue)
public static bool TryParse(
string input,
out MediaTypeHeaderValue parsedValue
)
public:
static bool TryParse(
String^ input,
[OutAttribute] MediaTypeHeaderValue^% parsedValue
)
static member TryParse :
input:string *
parsedValue:MediaTypeHeaderValue byref -> bool
public static function TryParse(
input : String,
parsedValue : MediaTypeHeaderValue
) : boolean
Parameters
- input
Type: System.String
- parsedValue
Type: System.Net.Http.Headers.MediaTypeHeaderValue
Return Value
Type: System.Boolean
Returns Boolean.