A5Storage::DataItem Class

Description

A reference to an object in a Storage container. A DataItem does not hold any data but has methods and properties that can be used to access the object itself and to get information about it without reading the object into memory.

Properties

AbsolutePathCharacter

URL to reference the item directly in a browser.

CallResultCallResult

String CallResult property

ContentTypeCharacter

String ContentType property

ExistsLogical

String Exists property

ModifiedTimeTime

String ModifiedTime property

NameCharacter

String Name property

SizeNumeric

String Size property

Methods

AddPermissions Method

AddPermissions

CopyTo Method

Copies an item to a Storage container.

Delete Method

Delete the underlying object if it exists. Returns false if an error occurs.

Get Method

Get the data for the object. The data returned may be a blob or a string, depending on the type of the Data argument you pass.

SaveToFile Method

Saves the data in an object to the file specified in TargetPath.

Set Method

Sets the object value and content type based on the values passed to the function.

SetFromFile Method

Set the object value from the file specified in SourcePath and sets the content based on ContentType.

WriteToStream Method

Retrieves the item data and writes it to a System::IO::Stream object. The content type and length written are also returned.

See Also