Uri.SchemeDelimiter Field
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Specifies the characters that separate the communication protocol scheme from the address portion of the URI. This field is read-only.
Assembly: System (in System.dll)
The following example creates a string from UriSchemeHttp, SchemeDelimiter, and an address. A Uri instance is then created from the string.
string address11 = "www.contoso.com";
string uriString = String.Format("{0}{1}{2}/", Uri.UriSchemeHttp, Uri.SchemeDelimiter, address11);
Uri result = null;
Uri.TryCreate(uriString, UriKind.Absolute, out result);
if (result != null) {
outputBlock.Text += result.ToString();
outputBlock.Text += " is a valid Uri\n";
}
else
outputBlock.Text += "Uri not created\n";
Show: