System.Classes.TResourceStream.Write
Delphi
function Write(const Buffer; Count: Longint): Longint; override; final;
C++
virtual System::LongInt __fastcall Write(const void *Buffer, System::LongInt Count)/* overload */ _FINAL_ATTRIBUTE;
inline System::LongInt __fastcall Write(const System::Sysutils::TBytes Buffer, System::LongInt Offset, System::LongInt Count){ return TStream::Write(Buffer, Offset, Count); }
inline System::LongInt __fastcall Write(const System::Sysutils::TBytes Buffer, System::LongInt Count){ return TStream::Write(Buffer, Count); }
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TResourceStream |
Description
Overrides the inherited method to raise an exception when an attempt is made to write the resource back to the application.
Applications should not use a TResourceStream to write the resources of the running application. Write overrides the inherited method to raise an EStreamError exception when an application tries to write to the application's resources.
As all other data-writing methods of TResourceStream (WriteBuffer, WriteComponent) call Write to do the actual writing, calling any of the data-writing methods of TResourceStream will raise an exception.