ADO CopyTo 메서드
❮ 전체 스트림 개체 참조
CopyTo 메서드는 열려 있는 Stream 개체에서 다른 열려 있는 Stream 개체로 지정된 수의 문자 또는 바이트를 복사하는 데 사용됩니다.
두 Stream 객체의 유형은 동일해야 합니다. 그러나 텍스트 Stream 개체는 이진 Stream 개체에 복사할 수 있지만 그 반대의 경우는 불가능하며 대상 Stream 개체의 CharSet 속성은 소스 Stream 개체와 다를 수 있습니다.
통사론
objStream.CopyTo dest,numchars
Parameter | Description |
---|---|
dest | Required. Where to copy the Stream (contains a reference to an open Stream object) |
numchars | Optional. An integer that specifies the number of characters
or bytes to be copied from the current position in the source Stream to
the destination Stream. Default is -1 (will copy all data from the current position to
EOS)
Note: If the specified number is greater than the available number of bytes/characters until EOS, then only bytes/characters from the current position to EOS are copied |
❮ 전체 스트림 개체 참조