Uri.SchemeDelimiter Field

May 11, 2014

Specifies the characters that separate the communication protocol scheme from the address portion of the URI. This field is read-only.

Namespace:  System
Assembly:  System (in System.dll)

public static readonly string SchemeDelimiter

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";



Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft