Windows Dev Center

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


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft