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。

适用于