Uri.Parse Uri.Parse Uri.Parse Uri.Parse Method

定义

警告

此 API 现已过时。

分析当前实例的 URI 以确保它包含有效 URI 所需的所有部分。Parses the URI of the current instance to ensure it contains all the parts required for a valid URI.

protected:
 virtual void Parse();
[System.Obsolete("The method has been deprecated. It is not used by the system. http://go.microsoft.com/fwlink/?linkid=14202")]
[System.Obsolete("The method has been deprecated. It is not used by the system. https://go.microsoft.com/fwlink/?linkid=14202")]
protected virtual void Parse ();
abstract member Parse : unit -> unit
override this.Parse : unit -> unit
Protected Overridable Sub Parse ()

异常

从构造函数传来的 URI 无效。The Uri passed from the constructor is invalid.

适用于