Partager via


DataConnectionDialog.SelectedProvider Property

Retrieves or sets the data provider currently selected in the connection dialog box, using the data provider's GUID.

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

Syntax

'Declaration
Public MustOverride Property SelectedProvider As Guid
public abstract Guid SelectedProvider { get; set; }
public:
virtual property Guid SelectedProvider {
    Guid get () abstract;
    void set (Guid value) abstract;
}
abstract SelectedProvider : Guid with get, set
abstract function get SelectedProvider () : Guid 
abstract function set SelectedProvider (value : Guid)

Property Value

Type: System.Guid
Returns the GUID of the data provider currently selected in the dialog box.

Exceptions

Exception Condition
InvalidOperationException

When setting the selected provider, the value of SelectedSource is an empty GUID and the specified GUID is not empty.

ArgumentException

When setting the selected provider, the specified GUID is not a registered DDEX provider.

Remarks

Normally a client sets this property to specify an initial configuration of the dialog, and then retrieve it after the dialog has closed to pick up the information entered by the user.

.NET Framework Security

See Also

Reference

DataConnectionDialog Class

Microsoft.VisualStudio.Data Namespace