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)

Syntax

'Declaration
Public Shared ReadOnly UriSchemeFtp As String
public static readonly string UriSchemeFtp

Examples

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

Dim address9 As Uri = New Uri("ftp://contoso/files/testfile.txt")
If address9.Scheme = Uri.UriSchemeFtp Then
  outputBlock.Text &= "Uri is Ftp protocol"
  outputBlock.Text &= vbCrLf
End If
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");

Version Information

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

Platforms

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

See Also

Reference