Uri.UriSchemeFile Uri.UriSchemeFile Uri.UriSchemeFile Uri.UriSchemeFile Field

Définition

Spécifie que l'URI est un pointeur vers un fichier.Specifies that the URI is a pointer to a file. Ce champ est en lecture seule.This field is read-only.

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

Valeur de champ

Exemples

L’exemple suivant crée une Uri instance et détermine si le schéma est UriSchemeFile.The following example creates a Uri instance and determines whether the scheme is UriSchemeFile.

Uri^ address2 = gcnew Uri( "file://server/filename.ext" );
if ( address2->Scheme == Uri::UriSchemeFile )
{
   Console::WriteLine( "Uri is a file" );
}
Uri address2 =  new Uri("file://server/filename.ext");
if (address2.Scheme == Uri.UriSchemeFile) 
    Console.WriteLine("Uri is a file");
Dim address2 As New Uri("file://server/filename.ext")
If address2.Scheme = Uri.UriSchemeFile Then
    Console.WriteLine("Uri is a file")
End If 

Remarques

Dans .NET Framework version 1,1, unfile:///pathURI « » a été traduit en «file:/path».In .NET Framework version 1.1, a "file:///path" URI was translated to "file:/path". La version 2,0 a été corrigée.This has been corrected for version 2.0.

S’applique à