Share via


MediaTypeHeaderValue.TryParseStrictList 方法

定義

IList<T>String 接受 ,並將其剖析為 MediaTypeHeaderValue 及其相關聯的參數。

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

參數

inputs
IList<String>

媒體類型清單

parsedValues
IList<MediaTypeHeaderValue>

剖析的 MediaTypeHeaderValue

傳回

如果已成功剖析值,則為 True。

適用於