Uri.UriSchemeFile 필드


URI를 파일 포인터로 지정합니다.Specifies that the URI is a pointer to a file. 이 필드는 읽기 전용입니다.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 

필드 값



다음 예에서는 인스턴스를 만들고 Uri 체계가 인지 여부를 확인 합니다 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


In .NET Framework version 1.1, a "file:///path" URI was translated to "file:/path". 이는 버전 2.0에 대해 수정 되었습니다.This has been corrected for version 2.0.

적용 대상