TdxPSExplorerItem.CreateDataStream(TdxPSStreamMode) Method
In This Article
Creates a stream containing the item’s content.
#Declaration
Delphi
function CreateDataStream(AMode: TdxPSStreamMode): TStream; virtual;
#Parameters
Name | Type |
---|---|
AMode | Tdx |
#Returns
Type |
---|
TStream |
#Remarks
The CreateDataStream method is used to create a stream containing the item’s data. The AMode parameter specifies the stream access modes available. The table below lists values that can be passed as this parameter.
Value | Description |
---|---|
Sm |
A read-only stream is created. |
Sm |
A write-only stream is created. |
sm |
A read-write stream is created. |
The created stream’s content is the item’s data stored either within a file or a database field. Thus, TdxPSExplorerItem descendants override the CreateDataStream method to return either a file stream or a BLOB stream.
Note
If you are developing your own item classes you may also need to override the Create
See Also