Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​NewsStyleUriParser

Assembly: System.Runtime

Inheritance: object → UriParser → NewsStyleUriParser

A customizable parser based on the news scheme using the Network News Transfer Protocol (NNTP).

Methods

protected string
GetComponents​(Uri uri, UriComponents components, UriFormat format)
Inherited from UriParser
uri The URI to parse.
components The <see cref="T:System.UriComponents" /> to retrieve from <paramref name="uri" /> .
format One of the <see cref="T:System.UriFormat" /> values that controls how special characters are escaped.
Returns A string that contains the components.
Gets the components from a URI.
protected void
InitializeAndValidate​(Uri uri, UriFormatException& parsingError)
Inherited from UriParser
protected bool
IsBaseOf​(Uri baseUri, Uri relativeUri)
Inherited from UriParser
baseUri The base URI.
relativeUri The URI to test.
Returns <see langword="true" /> if <paramref name="baseUri" /> is a base URI for <paramref name="relativeUri" /> ; otherwise, <see langword="false" /> .
Determines whether <paramref name="baseUri" /> is a base URI for <paramref name="relativeUri" /> .
protected bool
IsWellFormedOriginalString​(Uri uri)
Inherited from UriParser
uri The URI to check.
Returns <see langword="true" /> if <paramref name="uri" /> is well-formed; otherwise, <see langword="false" /> .
Indicates whether a URI is well-formed.
protected UriParser
OnNewUri​()
Inherited from UriParser
Returns A <see cref="T:System.UriParser" /> for the constructed <see cref="T:System.Uri" /> .
Invoked by a <see cref="T:System.Uri" /> constructor to get a <see cref="T:System.UriParser" /> instance.
protected void
OnRegister​(string schemeName, int defaultPort)
Inherited from UriParser
schemeName The scheme that is associated with this <see cref="T:System.UriParser" /> .
defaultPort The port number of the scheme.
Invoked by the Framework when a <see cref="T:System.UriParser" /> method is registered.
protected string
Resolve​(Uri baseUri, Uri relativeUri, UriFormatException& parsingError)
Inherited from UriParser
public bool
Equals​(object obj)
Inherited from object
obj The object to compare with the current object.
Returns <see langword="true" /> if the specified object is equal to the current object; otherwise, <see langword="false" /> .
Determines whether the specified object is equal to the current object.
protected void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public int
GetHashCode​()
Inherited from object
Returns A hash code for the current object.
Serves as the default hash function.
public Type
GetType​()
Inherited from object
Returns The exact runtime type of the current instance.
Gets the <see cref="T:System.Type" /> of the current instance.
protected object
MemberwiseClone​()
Inherited from object
Returns A shallow copy of the current <see cref="T:System.Object" /> .
Creates a shallow copy of the current <see cref="T:System.Object" /> .
public string
ToString​()
Inherited from object
Returns A string that represents the current object.
Returns a string that represents the current object.