OpenAccess 열거형
정의
파일 액세스 함수를 호출할 때 파일을 여는 방법을 나타냅니다.Indicates how to open a file when calling file-access functions.
public enum class OpenAccess
public enum OpenAccess
type OpenAccess =
Public Enum OpenAccess
- 상속
필드
Default | -1 | 읽기 및 쓰기 액세스가 허용됩니다.Read and write access permitted. 기본값입니다.This is the default. |
Read | 1 | 읽기 액세스가 허용됩니다.Read access permitted. |
ReadWrite | 3 | 읽기 및 쓰기 액세스가 허용됩니다.Read and write access permitted. |
Write | 2 | 쓰기 액세스가 허용됩니다.Write access permitted. |
설명
파일 액세스 관련 함수를 호출할 때 실제 값 대신 코드에서 열거형 멤버를 사용할 수 있습니다.When you call file access-related functions, you can use enumeration members in your code in place of the actual values.
합니다 OpenAccess
파일에서 읽을 수 있는지 여부를 식별 하는 데 사용 되는 상수를 정의 하는 열거형 (Read
)에 작성 (Write
), 또는 둘 다 (ReadWrite
).The OpenAccess
enumeration defines constants used to identify whether a file can be read from (Read
), written to (Write
), or both (ReadWrite
). 열린 파일 Read
액세스는 수정할 수 없으므로에서 읽기만 합니다.A file opened for Read
access cannot be modified, only read from. 다음 표에서 OpenAccess
열거형 멤버입니다.The following table lists the OpenAccess
enumeration members.
파일 I/O 작업을 수행 하는 경우는 My.Computer.FileSystem
개체 성능이 향상 되 고 기존 파일 보다는 사용 편의성 I/O 메서드 제공 합니다.When performing file I/O operations, the My.Computer.FileSystem
object provides greater performance and ease of use than legacy file I/O methods. 자세한 내용은 참조 하세요. FileSystem 개체입니다.For more information, see FileSystem object.