Export (0) Print
Expand All

IStreamableField.GetData method

Returns the data stream of the field.

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

Stream GetData()

Return value

Type: System.IO.Stream

The data stream.

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.

Caution noteCaution

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.

Caution noteCaution

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

Community Additions

© 2014 Microsoft