英語で読む 編集

次の方法で共有


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

Definition

Gets the values specified for a given directive. A return value indicates whether the specified directive name was present.

C#
public bool TryGetValues(string name, out System.Collections.Generic.IReadOnlyList<string>? values);

Parameters

name
String

The name of the directive.

values
IReadOnlyList<String>

The values provided for the specified directive.

Returns

true if a directive with the specified name was parsed; otherwise, false.

Applies to

製品 バージョン
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)