Open this page in the API Guide

IDataProviderService.GetProvider Method (Guid, String)

Returns a data provider for the requested provider ID and gateway ID.

Namespace:  Dundas.BI.Data.DataProviders
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
DataProviderInfo GetProvider(
	Guid providerId,
	string gatewayId
)

Parameters

providerId
Type: System.Guid
The data provider ID.
gatewayId
Type: System.String
The gateway ID.

Return Value

Type: DataProviderInfo
The requested provider instance.
Exceptions
ExceptionCondition
ArgumentExceptionproviderId is Empty or gatewayId is null or empty.
InvalidProviderExceptionThe data provider with specified ID cannot be loaded.
DataProviderLoadExceptionThe gateway with the specified ID is not defined or not running as a cloud instance.
See Also