SchemeDelimiter Field

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.

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 = "";
        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";
            outputBlock.Text += "Uri not created\n";

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft