DirectiveCollection クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
コマンド ラインから解析された ディレクティブのコレクション。
public ref class DirectiveCollection : System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Collections::Generic::IEnumerable<System::String ^> ^>>
public class DirectiveCollection : System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,System.Collections.Generic.IEnumerable<string>>>
type DirectiveCollection = class
interface seq<KeyValuePair<string, seq<string>>>
interface IEnumerable
Public Class DirectiveCollection
Implements IEnumerable(Of KeyValuePair(Of String, IEnumerable(Of String)))
- 継承
-
DirectiveCollection
- 実装
注釈
ディレクティブは、角かっこを使用してコマンド ラインで指定されます。スペースを含まず、他のトークンの前にもディレクティブがない限りです。 次の例では、2 つのディレクティブが存在し、 directive-one : > myapp [directive-one] [directive-two:value] arg1 arg2 2 番目の ディレクティブには、 valueも指定directive-twoされた値があります。 ディレクティブ値は、 を使用して TryGetValues(String, IReadOnlyList<String>)を呼び出すことで読み取ることができます。
コンストラクター
| DirectiveCollection() |
コマンド ラインから解析された ディレクティブのコレクション。 |
メソッド
| Contains(String) |
指定した名前のディレクティブが解析されたかどうかを示す値を取得します。 |
| Equals(Object) |
指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。 (継承元 Object) |
| GetEnumerator() |
コレクションを反復処理する列挙子を返します。 |
| GetHashCode() |
既定のハッシュ関数として機能します。 (継承元 Object) |
| GetType() |
現在のインスタンスの Type を取得します。 (継承元 Object) |
| MemberwiseClone() |
現在の Object の簡易コピーを作成します。 (継承元 Object) |
| ToString() |
現在のオブジェクトを表す文字列を返します。 (継承元 Object) |
| TryGetValues(String, IReadOnlyList<String>) |
指定されたディレクティブに指定された値を取得します。 戻り値は、指定したディレクティブ名が存在するかどうかを示します。 |
明示的なインターフェイスの実装
| IEnumerable.GetEnumerator() |
コレクションを反復処理する列挙子を返します。 |