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
 
- 实现
 
注解
指令使用方括号在命令行上指定,除非它们也是指令,否则没有空格和前面的其他标记。 在下面的示例中,存在两个指令: directive-onedirective-two    > myapp [directive-one] [directive-two:value] arg1 arg2第二个指令也指定value了值 。 可以通过使用 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() | 
		 返回循环访问集合的枚举数。  |