Freigeben über


DataConnectionDialogFilterCallback Delegate

Represents the method that is called when data sources and providers are being filtered in the data connection dialog box.

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

Syntax

'Declaration
Public Delegate Function DataConnectionDialogFilterCallback ( _
    source As Guid, _
    provider As Guid _
) As Boolean
public delegate bool DataConnectionDialogFilterCallback(
    Guid source,
    Guid provider
)
public delegate bool DataConnectionDialogFilterCallback(
    Guid source, 
    Guid provider
)
type DataConnectionDialogFilterCallback = 
    delegate of 
        source:Guid * 
        provider:Guid -> bool
JScript does not support delegates.

Parameters

  • source
    Type: System.Guid
    The GUID of the data source.
  • provider
    Type: System.Guid
    The GUID of the data provider.

Return Value

Type: System.Boolean
true if the data provider is available for the data source; false if the data provider is not available and should be filtered out for the data source.

Remarks

When you add a new data connection, the Choose Data Sources dialog box displays a list of data sources to choose from. A set of available data providers corresponds to each data source selected. This callback determines which data providers are available for a given data source.

See Also

Reference

Microsoft.VisualStudio.Data.Services Namespace