UriParser.InitializeAndValidate(Uri, UriFormatException) UriParser.InitializeAndValidate(Uri, UriFormatException) UriParser.InitializeAndValidate(Uri, UriFormatException) Method

定义

初始化分析器的状态并验证 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

参数

uri
Uri Uri Uri

要验证的 T:System.Uri。The T:System.Uri to validate.

parsingError
UriFormatException UriFormatException UriFormatException

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

注解

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

适用于