DirectiveCollection.TryGetValues(String, IReadOnlyList<String>) Metoda

Definicja

Pobiera wartości określone dla danej dyrektywy. Wartość zwracana wskazuje, czy określona nazwa dyrektywy była obecna.

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

Parametry

name
String

Nazwa dyrektywy.

values
IReadOnlyList<String>

Wartości podane dla określonej dyrektywy.

Zwraca

true jeśli dyrektywa o określonej nazwie została przeanalizowana; w przeciwnym razie , false.

Dotyczy