InitializeAndValidate Method
Collapse the table of content
Expand the table of content

UriParser.InitializeAndValidate Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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 Uri to validate.
parsingError
Type: System.UriFormatException %
Validation errors, if any.

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2016 Microsoft