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.

适用于