RandomAccess.SetLength(SafeFileHandle, Int64) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
파일의 길이를 지정된 값으로 설정합니다.
public:
static void SetLength(Microsoft::Win32::SafeHandles::SafeFileHandle ^ handle, long length);
public static void SetLength (Microsoft.Win32.SafeHandles.SafeFileHandle handle, long length);
static member SetLength : Microsoft.Win32.SafeHandles.SafeFileHandle * int64 -> unit
Public Shared Sub SetLength (handle As SafeFileHandle, length As Long)
매개 변수
- handle
- SafeFileHandle
파일 핸들입니다.
- length
- Int64
파일의 길이(바이트)입니다.
예외
handle
은 null
입니다.
handle
이 잘못되었습니다.
파일이 닫혀 있습니다.
파일은 검색(파이프 또는 소켓)을 지원하지 않습니다.
length
가 음수입니다.