UriParser.InitializeAndValidate(Uri, UriFormatException) Method

Definition

初始化分析器的状态并验证 URI。Initialize the state of the parser and validate the URI.

protected:
 virtual void InitializeAndValidate(Uri ^ uri, [Runtime::InteropServices::Out] UriFormatException ^ % parsingError);
protected virtual void InitializeAndValidate (Uri uri, out UriFormatException parsingError);
abstract member InitializeAndValidate : Uri * UriFormatException -> unit
override this.InitializeAndValidate : Uri * UriFormatException -> unit
Protected Overridable Sub InitializeAndValidate (uri As Uri, ByRef parsingError As UriFormatException)

Parameters

uri
Uri

要验证的 UriThe Uri to validate.

parsingError
UriFormatException

验证错误(如果有)。Validation errors, if any.

Remarks

每次实例化 Uri,都将调用 InitializeAndValidate 方法。The InitializeAndValidate method is called every time a Uri is instantiated.

Applies to