System.Classes.TStreamOwnership

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TStreamOwnership = (soReference, soOwned);

C++

enum DECLSPEC_DENUM TStreamOwnership : unsigned char { soReference, soOwned };

Properties

Type Visibility Source Unit Parent
enum public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

TStreamOwnership indicates whether a stream object should be freed by the object that uses it.

The following are possible values of TStreamOwnership:



Value Meaning

soReference

The stream is an independent object with a different Owner. The object that uses the stream does not free it when it is destroyed.

soOwned

The stream is owned by the object that uses it (and exists solely for that object). The object that uses the stream frees the associated stream when it no longer needs to use the stream.