Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft. All rights reserved.