다음을 통해 공유


FileAttributes 열거형

파일과 디렉터리에 특성을 제공합니다.

이 열거형에는 멤버 값를 비트로 조합할 수 있는 FlagsAttribute 특성이 있습니다.

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

구문

‘선언
<SerializableAttribute> _
<FlagsAttribute> _
<ComVisibleAttribute(True)> _
Public Enumeration FileAttributes
‘사용 방법
Dim instance As FileAttributes
[SerializableAttribute] 
[FlagsAttribute] 
[ComVisibleAttribute(true)] 
public enum FileAttributes
[SerializableAttribute] 
[FlagsAttribute] 
[ComVisibleAttribute(true)] 
public enum class FileAttributes
/** @attribute SerializableAttribute() */ 
/** @attribute FlagsAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
public enum FileAttributes
SerializableAttribute 
FlagsAttribute 
ComVisibleAttribute(true) 
public enum FileAttributes

멤버

  멤버 이름 설명
Supported by the .NET Compact Framework Archive 파일의 보관 상태입니다. 응용 프로그램은 이 특성을 사용하여 백업하거나 제거할 파일을 표시합니다. 
Supported by the .NET Compact Framework Compressed 파일이 압축되어 있습니다. 
Supported by the .NET Compact Framework Device 다음에 사용하도록 예약됩니다. 
Supported by the .NET Compact Framework Directory 파일은 디렉터리입니다. 
Supported by the .NET Compact Framework Encrypted 파일 또는 디렉터리가 암호화됩니다. 파일의 경우 파일의 모든 데이터가 암호화됨을 의미합니다. 디렉터리의 경우 새로 만들어진 파일과 디렉터리에 대해 기본적으로 암호화가 수행됨을 의미합니다. 
Supported by the .NET Compact Framework Hidden 파일이 숨겨져 있으므로 원래 디렉터리 목록에 포함되지 않습니다. 
Supported by the .NET Compact Framework Normal 일반 파일로 다른 특성이 설정되어 있지는 않습니다. 이 특성은 단독으로 사용되는 경우에만 유효합니다. 
Supported by the .NET Compact Framework NotContentIndexed 파일이 운영 체제의 내용 인덱싱 서비스에 의해 인덱싱되지 않습니다. 
Supported by the .NET Compact Framework Offline 파일이 오프라인입니다. 파일의 데이터를 즉시 사용할 수 없습니다. 
Supported by the .NET Compact Framework ReadOnly 읽기 전용 파일입니다. 
Supported by the .NET Compact Framework ReparsePoint 파일에 파일 또는 디렉터리와 연관된 사용자 정의 데이터의 블록인 재분석 지점이 포함되어 있습니다. 
Supported by the .NET Compact Framework SparseFile 스파스 파일입니다. 스파스 파일은 일반적으로 데이터가 대부분 0인 크기가 큰 파일입니다. 
Supported by the .NET Compact Framework System 시스템 파일입니다. 파일이 운영 체제의 일부이거나 운영 체제에 의해 단독으로 사용됩니다. 
Supported by the .NET Compact Framework Temporary 임시 파일입니다. 파일 시스템은 신속한 액세스를 위해 데이터를 대용량 저장소로 다시 플러시하지 않고 모든 데이터를 메모리에 보관하려고 합니다. 임시 파일은 더 이상 필요하지 않으면 즉시 응용 프로그램에서 삭제해야 합니다. 

설명

파일을 만들고 파일에 텍스트를 쓰는 방법에 대한 예제를 보려면 방법: 파일에 텍스트 쓰기를 참조하십시오. 파일에서 텍스트를 읽는 방법에 대한 예제를 보려면 방법: 파일의 텍스트 읽기를 참조하십시오. 이진 파일을 읽거나 쓰는 방법에 대한 예제를 보려면 방법: 새로 만든 데이터 파일 읽기 및 쓰기를 참조하십시오.

이러한 모든 특성은 WinNT.h의 특성에 해당합니다. 그러나 모든 특성이 파일과 디렉터리 모두에 적용되지는 않습니다.

플랫폼

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에서 지원

참고 항목

참조

System.IO 네임스페이스

기타 리소스

파일 및 스트림 I/O
방법: 파일의 텍스트 읽기
방법: 파일에 텍스트 쓰기