Upravit

Sdílet prostřednictvím


UriParser Class

Definition

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

public ref class UriParser abstract
public abstract class UriParser
type UriParser = class
Public MustInherit 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