Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

IUriStreamService Interface

Defines a service which is called to retrieve data from the URI specified in some types of document fields.

Namespace: DevExpress.Office.Services

Assembly: DevExpress.Office.v19.1.Core.dll


public interface IUriStreamService


When a field is updated, the IUriStreamService.GetStream method is called. This method calls the IUriStreamProvider.GetStream methods of registered providers to obtain a stream of image data. Subsequent calls are made until a successful result is obtained. The order of calls is the order in which providers have been registered. By default, there is only one provider - the WebUriStreamProvider that enables you to load an image from the specified URI by performing a web request.


This example demonstrates how to use the IUriStreamService.RegisterProvider method to register a custom data stream provider implementing the IUriStreamProvider interface and make it available to clients of the IUriStreamService service.

private void RegisterUriStreamService(RichEditControl richEditControl) {
    IUriStreamService uriStreamService = richEditControl.GetService<IUriStreamService>();
    uriStreamService.RegisterProvider(new ImageStreamProvider(NorthwindDataProvider.Categories, "Picture"));

The following code snippets (auto-collected from DevExpress Examples) contain references to the IUriStreamService interface.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also