GenericUriParser 类  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于分层 URI 的可自定义分析器。
public ref class GenericUriParser : UriParser
	public class GenericUriParser : UriParser
	type GenericUriParser = class
    inherit UriParser
	Public Class GenericUriParser
Inherits UriParser
		- 继承
 
注解
如果要基于已知方案创建分析程序,请使用 HttpStyleUriParser、、FtpStyleUriParserGopherStyleUriParser、 LdapStyleUriParser或 NewsStyleUriParser。
创建可自定义分析程序时,通过将枚举中 System.GenericUriParserOptions 可用的值的按位组合传递给构造函数来 GenericUriParser 指定分析程序的行为。
现有 System.Uri 类已扩展,以支持国际资源标识符 (IRI) 和国际化域名 (IDN) 。 除非当前用户专门启用 IRI,否则他们看不到任何 NET Framework 2.0 行为的改变。 这确保了 NET Framework 以前版本的应用程序兼容性。
默认情况下,派生自 GenericUriParser 的所有分析程序都不会获得 IRI 和 IDN 支持。 选项 Default 不包括 IRI 和 IDN 支持。 向 枚举添加了 System.GenericUriParserOptions 两个新值,以指示自定义分析程序是否支持 IRI 和 IDN。
有关 IRI 和 IDN 支持的详细信息,请参阅 类的 System.Uri “备注”部分。
构造函数
| GenericUriParser(GenericUriParserOptions) | 
		 创建用于分层 URI 的可自定义分析器。  | 
        	
方法
| Equals(Object) | 
		 确定指定对象是否等于当前对象。 (继承自 Object) | 
        	
| GetComponents(Uri, UriComponents, UriFormat) | 
		 从 URI 获取各个组成部分。 (继承自 UriParser) | 
        	
| GetHashCode() | 
		 作为默认哈希函数。 (继承自 Object) | 
        	
| GetType() | 
		 获取当前实例的 Type。 (继承自 Object) | 
        	
| InitializeAndValidate(Uri, UriFormatException) | 
		 初始化分析器的状态并验证 URI。 (继承自 UriParser) | 
        	
| IsBaseOf(Uri, Uri) | 
		 确定   | 
        	
| IsWellFormedOriginalString(Uri) | 
		 指示 URI 是否是格式良好的。 (继承自 UriParser) | 
        	
| MemberwiseClone() | 
		 创建当前 Object 的浅表副本。 (继承自 Object) | 
        	
| OnNewUri() | 
		 由 Uri 构造函数调用以获取一个 UriParser 实例。 (继承自 UriParser) | 
        	
| OnRegister(String, Int32) | 
		 在注册 UriParser 方法时由 Framework 调用。 (继承自 UriParser) | 
        	
| Resolve(Uri, Uri, UriFormatException) | 
		 由 Uri 构造函数和 TryCreate 调用以解析相对 URI。 (继承自 UriParser) | 
        	
| ToString() | 
		 返回表示当前对象的字符串。 (继承自 Object) |