Partager via


DataConnectionDialog.AddSources Method (Guid)

Enumerates through all registered data sources and associated data providers, and adds those that have a matching provider technology.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
Public MustOverride Sub AddSources ( _
    providerTechnology As Guid _
)
public abstract void AddSources(
    Guid providerTechnology
)
public:
virtual void AddSources(
    Guid providerTechnology
) abstract
abstract AddSources : 
        providerTechnology:Guid -> unit
public abstract function AddSources(
    providerTechnology : Guid
)

Parameters

  • providerTechnology
    Type: System.Guid

    A guid specifying a data provider technology.

Remarks

This method of adding data sources and providers is useful in cases where a caller only knows how to work with a particular provider technology, such as ADO.NET, and does not want a user to add a connection to any other kind of provider.

.NET Framework Security

See Also

Reference

DataConnectionDialog Class

AddSources Overload

Microsoft.VisualStudio.Data Namespace