UriParser.IsBaseOf(Uri, Uri) UriParser.IsBaseOf(Uri, Uri) UriParser.IsBaseOf(Uri, Uri) UriParser.IsBaseOf(Uri, Uri) Method

定义

确定 baseUri 是否为 relativeUri 的基 URI。Determines whether baseUri is a base URI for relativeUri.

protected:
 virtual bool IsBaseOf(Uri ^ baseUri, Uri ^ relativeUri);
protected virtual bool IsBaseOf (Uri baseUri, Uri relativeUri);
abstract member IsBaseOf : Uri * Uri -> bool
override this.IsBaseOf : Uri * Uri -> bool
Protected Overridable Function IsBaseOf (baseUri As Uri, relativeUri As Uri) As Boolean

参数

baseUri
Uri Uri Uri Uri

基 URI。The base URI.

relativeUri
Uri Uri Uri Uri

要测试的 URI。The URI to test.

返回

如果 baseUrirelativeUri 的基 URI,则为 true;否则为 falsetrue if baseUri is a base URI for relativeUri; otherwise, false.

适用于