다음을 통해 공유


Uri.UriSchemeFile 필드

URI를 파일 포인터로 지정합니다. 이 필드는 읽기 전용입니다.

네임스페이스: System
어셈블리: System(system.dll)

구문

‘선언
Public Shared ReadOnly UriSchemeFile As String
‘사용 방법
Dim value As String

value = Uri.UriSchemeFile
public static readonly string UriSchemeFile
public:
static initonly String^ UriSchemeFile
public static final String UriSchemeFile
public static final var UriSchemeFile : String

설명

.NET Framework 버전 1.1에서 "file:///path" uri는 "file:/path"로 변환됩니다. 이 변환은 버전 2.0에서 수정되었습니다.

예제

다음 예제에서는 Uri 인스턴스를 만들고 체계가 UriSchemeFile인지 여부를 확인합니다.

Dim address2 As New Uri("file://server/filename.ext")
If address2.Scheme = Uri.UriSchemeFile Then
    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");

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

.NET Compact Framework

2.0, 1.0에서 지원

참고 항목

참조

Uri 클래스
Uri 멤버
System 네임스페이스