Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Uri.SchemeDelimiter Field

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




            string address = "www.contoso.com";
            string uriString = String.Format("{0}{1}{2}/", Uri.UriSchemeHttp, Uri.SchemeDelimiter, address); 

            Uri result = null; 
            Uri.TryCreate(uriString, UriKind.Absolute, out result);
            if (result != null)
                Console.WriteLine("{0} is a valid Uri", result.ToString());
            else
                Console.WriteLine("Uri not created");



Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft