DirectiveCollection 클래스

정의

명령줄에서 구문 분석된 지시문의 컬렉션입니다.

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
구현

설명

지시문은 대괄호를 사용하여 명령줄에 지정되며, 공백이 없고 지시문이 아닌 한 다른 토큰 앞에 오는 명령줄이 지정됩니다. 다음 예제에서는 지시문 1과 지시문-2라는 두 개의 지시문이 있습니다. > myapp [directive-one] [directive-two:value] arg1 arg2 두 번째 값에는 값도 지정됩니다. 지시문 값은 을 사용하여 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()

컬렉션을 반복하는 열거자를 반환합니다.

적용 대상