MediaTypeHeaderValue.TryParseStrictList(IList<String>, IList<MediaTypeHeaderValue>) Method

Definition

Takes an IList<T> of String and parses it into the MediaTypeHeaderValue and its associated parameters.

public:
 static bool TryParseStrictList(System::Collections::Generic::IList<System::String ^> ^ inputs, [Runtime::InteropServices::Out] System::Collections::Generic::IList<Microsoft::Net::Http::Headers::MediaTypeHeaderValue ^> ^ % parsedValues);
public static bool TryParseStrictList (System.Collections.Generic.IList<string> inputs, out System.Collections.Generic.IList<Microsoft.Net.Http.Headers.MediaTypeHeaderValue> parsedValues);
public static bool TryParseStrictList (System.Collections.Generic.IList<string>? inputs, out System.Collections.Generic.IList<Microsoft.Net.Http.Headers.MediaTypeHeaderValue>? parsedValues);
static member TryParseStrictList : System.Collections.Generic.IList<string> * IList -> bool
Public Shared Function TryParseStrictList (inputs As IList(Of String), ByRef parsedValues As IList(Of MediaTypeHeaderValue)) As Boolean

Parameters

inputs
IList<String>

A list of media types

parsedValues
IList<MediaTypeHeaderValue>

The parsed MediaTypeHeaderValue.

Returns

Boolean

True if the value was successfully parsed.

Applies to