Windows apps
Collapse the table of content
Expand the table of content
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.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

Field Value

Type: System.String

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

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

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft