IStreamableField.GetData Method

Returns the data stream of the field.

Namespace:  Microsoft.BusinessData.Runtime
Assembly:  Microsoft.BusinessData (in Microsoft.BusinessData.dll)

Syntax

'Declaration
Function GetData As Stream
'Usage
Dim instance As IStreamableField
Dim returnValue As Stream

returnValue = instance.GetData()
Stream GetData()

Return Value

Type: System.IO.Stream

The data stream.

Remarks

From each StreamableField, the data stream can be accessed via the GetData method, which will invoke the StreamAccessor MethodInstance with the same name as the StreamableField.

Warning

The GetData method invokes the StreamAccessor to obtain a new stream every time it is invoked. Calling this method multiple times may cause an unnecessary load in the external system.

Warning

Streams obtained via the GetData method should be closed and disposed by the caller. Streams that are not closed or disposed may leak resources.

See Also

Reference

IStreamableField Interface

IStreamableField Members

Microsoft.BusinessData.Runtime Namespace

GetStreamableField(String)

GetStreamableFields()