UriParser.OnNewUri UriParser.OnNewUri UriParser.OnNewUri UriParser.OnNewUri Method

定义

Uri 构造函数调用以获取一个 UriParser 实例。Invoked by a Uri constructor to get a UriParser instance

protected:
 virtual UriParser ^ OnNewUri();
protected virtual UriParser OnNewUri ();
abstract member OnNewUri : unit -> UriParser
override this.OnNewUri : unit -> UriParser
Protected Overridable Function OnNewUri () As UriParser

返回

用于构建的 UriParser 的一个 UriA UriParser for the constructed Uri.

注解

默认实现将返回相同UriParser实例。The default implementation returns the same UriParser instance. 可能需要重写此方法并返回不同UriParser如果运行在多线程环境中每次调用。You may need to override this method and return a different UriParser for each invocation if you are operating in a multithreaded environment.

适用于