A Sandcastle Documented Class Library

# 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 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    DataProviderInfo GetProvider(
    	Guid providerId,
    	string gatewayId
    )

    Function GetProvider (
    	providerId As Guid,
    	gatewayId As String
    ) As DataProviderInfo

    DataProviderInfo^ GetProvider(
    	Guid providerId,
    	String^ gatewayId
    )

    abstract GetProvider :
            providerId : Guid *
            gatewayId : string -> DataProviderInfo

#### 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

Exception | Condition
--- | ---
ArgumentException | providerId is Empty or gatewayId is or empty.
InvalidProviderException | The data provider with specified ID cannot be loaded.
DataProviderLoadException | The gateway with the specified ID is not defined or not running as a cloud instance.

See Also

#### Reference

IDataProviderService Interface
GetProvider Overload
Dundas.BI.Data.DataProviders Namespace