Export (0) Print
Expand All

Uri.UriSchemeFtp Field

Specifies that the URI is accessed through the File Transfer Protocol (FTP). This field is read-only.

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

public static readonly string UriSchemeFtp

The following example creates a Uri instance and determines whether the scheme is UriSchemeFtp.


Uri address9 = new Uri("ftp://contoso/files/testfile.txt");
if (address9.Scheme == Uri.UriSchemeFtp)
    outputBlock.Text += "Uri is Ftp protocol\n"; 



Uri address7 = new Uri("ftp://contoso/files/testfile.txt");
if (address7.Scheme == Uri.UriSchemeFtp)
    Console.WriteLine("Uri is Ftp protocol");


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.

Community Additions

ADD
Show:
© 2014 Microsoft