طريقة ADO CopyTo
استكمال مرجع كائن الدفق
يتم استخدام أسلوب CopyTo لنسخ عدد محدد من الأحرف أو وحدات البايت من كائن دفق مفتوح إلى كائن دفق مفتوح آخر.
يجب أن يكون نوع كائني الدفق متماثلين. ومع ذلك ، يمكن نسخ كائنات دفق النص إلى كائنات دفق ثنائية ، ولكن ليس العكس ، ويمكن أن تختلف خاصية CharSet لكائن Stream الوجهة عن كائن 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 |
استكمال مرجع كائن الدفق