UriParser UriParser UriParser 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
UriParserUriParserUriParserUriParser
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() UriParser() UriParser() UriParser()

Constructs a default URI parser.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

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

Gets the components from a URI.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
InitializeAndValidate(Uri, UriFormatException) InitializeAndValidate(Uri, UriFormatException) InitializeAndValidate(Uri, UriFormatException) InitializeAndValidate(Uri, UriFormatException)

Initialize the state of the parser and validate the URI.

IsBaseOf(Uri, Uri) IsBaseOf(Uri, Uri) IsBaseOf(Uri, Uri) IsBaseOf(Uri, Uri)

Determines whether baseUri is a base URI for relativeUri.

IsKnownScheme(String) IsKnownScheme(String) IsKnownScheme(String) IsKnownScheme(String)

Indicates whether the parser for a scheme is registered.

IsWellFormedOriginalString(Uri) IsWellFormedOriginalString(Uri) IsWellFormedOriginalString(Uri) IsWellFormedOriginalString(Uri)

Indicates whether a URI is well-formed.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnNewUri() OnNewUri() OnNewUri() OnNewUri()

Invoked by a Uri constructor to get a UriParser instance

OnRegister(String, Int32) OnRegister(String, Int32) OnRegister(String, Int32) OnRegister(String, Int32)

Invoked by the Framework when a UriParser method is registered.

Register(UriParser, String, Int32) Register(UriParser, String, Int32) Register(UriParser, String, Int32) Register(UriParser, String, Int32)

Associates a scheme and port number with a UriParser.

Resolve(Uri, Uri, UriFormatException) Resolve(Uri, Uri, UriFormatException) Resolve(Uri, Uri, UriFormatException) Resolve(Uri, Uri, UriFormatException)

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

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to