DirectiveCollection.TryGetValues(String, IReadOnlyList<String>) 方法

定義

取得指定指示詞所指定的值。 傳回值表示指定的指示詞名稱是否存在。

public:
 bool TryGetValues(System::String ^ name, [Runtime::InteropServices::Out] System::Collections::Generic::IReadOnlyList<System::String ^> ^ % values);
public bool TryGetValues (string name, out System.Collections.Generic.IReadOnlyList<string>? values);
member this.TryGetValues : string * IReadOnlyList -> bool
Public Function TryGetValues (name As String, ByRef values As IReadOnlyList(Of String)) As Boolean

參數

name
String

指示詞的名稱。

values
IReadOnlyList<String>

為指定的指示詞提供的值。

傳回

true 如果剖析具有指定名稱的指示詞,則為 ;否則為 false

適用於