英語で読む 編集

次の方法で共有


UriParser Class

Definition

Parses a new URI scheme. This is an abstract class.

public abstract class UriParser
Inheritance
UriParser
Derived

Remarks

The UriParser class enables you to create parsers for new URI schemes. You can write these parsers in their entirety, or the parsers can be derived from well-known schemes (HTTP, FTP, and other schemes based on network protocols). If you want to create a completely new parser, inherit from GenericUriParser. If you want to create a parser that extends a well-known URI scheme, inherit from FtpStyleUriParser, HttpStyleUriParser, FileStyleUriParser, GopherStyleUriParser, or LdapStyleUriParser.

Microsoft strongly recommends that you use a parser shipped with .NET. Building your own parser increases the complexity of your application, and will not perform as well as the shipped parsers.

Constructors

UriParser()

Constructs a default URI parser.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetComponents(Uri, UriComponents, UriFormat)

Gets the components from a URI.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
InitializeAndValidate(Uri, UriFormatException)

Initialize the state of the parser and validate the URI.

IsBaseOf(Uri, Uri)

Determines whether baseUri is a base URI for relativeUri.

IsKnownScheme(String)

Indicates whether the parser for a scheme is registered.

IsWellFormedOriginalString(Uri)

Indicates whether a URI is well-formed.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnNewUri()

Invoked by a Uri constructor to get a UriParser instance.

OnRegister(String, Int32)

Invoked by the Framework when a UriParser method is registered.

Register(UriParser, String, Int32)

Associates a scheme and port number with a UriParser.

Resolve(Uri, Uri, UriFormatException)

Called by Uri constructors and TryCreate to resolve a relative URI.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

製品 バージョン
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1