System.UriParser.OnNewUri Method

Invoked by a Uri constructor to get a UriParser instance

Syntax

protected virtual UriParser OnNewUri ()

Returns

A UriParser for the constructed Uri.

Remarks

The default implementation returns the same UriParser instance. You may need to override this method and return a different UriParser for each invocation if you are operating in a multithreaded environment.

Requirements

Namespace: System
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0