C# Uri IsWellFormedOriginalString

In this chapter you will learn:

  1. Get to know Uri.IsWellFormedOriginalString
  2. Syntax for Uri.IsWellFormedOriginalString
  3. Returns for Uri.IsWellFormedOriginalString
  4. Example - Uri.IsWellFormedOriginalString

Description

Uri IsWellFormedOriginalString indicates whether the string used to construct this Uri was well-formed and is not required to be further escaped.

Syntax

Uri.IsWellFormedOriginalString has the following syntax.


public bool IsWellFormedOriginalString()

Returns

Uri.IsWellFormedOriginalString method returns A Boolean value that is true if the string was well-formed; else false.

Example


/*w  w w  . j  av a2  s. c  om*/
using System;
public class MainClass{
  public static void Main(String[] argv){  
    // Create Uri
    Uri uriAddress = new Uri("http://www.java2s.com/index.htm#search");
    Console.WriteLine(uriAddress.IsWellFormedOriginalString);
  }
}

Next chapter...

What you will learn in the next chapter:

  1. Get to know Uri.IsWellFormedUriString
  2. Syntax for Uri.IsWellFormedUriString
  3. Parameter for Uri.IsWellFormedUriString
  4. Returns for Uri.IsWellFormedUriString
  5. Example - Uri.IsWellFormedUriString