共用方式為


SetCookieHeaderValue.TryParseList 方法

定義

嘗試將值序列剖析為 的 SetCookieHeaderValue 序列。

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

參數

inputs
IList<String>

要剖析的值。

parsedValues
IList<SetCookieHeaderValue>

剖析的值。

傳回

true 如果所有輸入都是有效的 SetCookieHeaderValue ,則為 ,否則 false 為 。

適用於