Uri.UriSchemeFtp Pole

Definicja

Określa, że dostęp do identyfikatora URI jest uzyskiwany za pośrednictwem protokołu TRANSFERU plików (FTP). To pole jest tylko do odczytu.

public: static initonly System::String ^ UriSchemeFtp;
public static readonly string UriSchemeFtp;
 staticval mutable UriSchemeFtp : string
Public Shared ReadOnly UriSchemeFtp As String 

Wartość pola

Przykłady

Poniższy przykład tworzy Uri wystąpienie i określa, czy schemat to UriSchemeFtp.

Uri^ address7 = gcnew Uri( "ftp://contoso/files/testfile.txt" );
if ( address7->Scheme == Uri::UriSchemeFtp )
{
   Console::WriteLine( "Uri is Ftp protocol" );
}
Uri address7 = new Uri("ftp://contoso/files/testfile.txt");
if (address7.Scheme == Uri.UriSchemeFtp)
    Console.WriteLine("Uri is Ftp protocol");
let address7 = Uri "ftp://contoso/files/testfile.txt"
if address7.Scheme = Uri.UriSchemeFtp then
    printfn "Uri is Ftp protocol"
Dim address7 As New Uri("ftp://contoso/files/testfile.txt")
If address7.Scheme = Uri.UriSchemeFtp Then
    Console.WriteLine("Uri is Ftp protocol")
End If

Dotyczy