UriParser.InitializeAndValidate Method (Uri, UriFormatException)

 

Initialize the state of the parser and validate the URI.

Namespace:   System
Assembly:  System (in System.dll)

protected virtual void InitializeAndValidate(
	Uri uri,
	out UriFormatException parsingError
)

Parameters

uri
Type: System.Uri

The T:System.Uri to validate.

parsingError
Type: System.UriFormatException

Validation errors, if any.

The InitializeAndValidate method is called every time a Uri is instantiated.

.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: