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

'宣言
Public MustOverride Property SelectedProvider As Guid
'使用
Dim instance As DataConnectionDialog
Dim value As Guid

value = instance.SelectedProvider

instance.SelectedProvider = value
public abstract Guid SelectedProvider { get; set; }
public:
virtual property Guid SelectedProvider {
    Guid get () abstract;
    void set (Guid value) abstract;
}
public abstract function get SelectedProvider () : Guid
public 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.

Permissions

See Also

Reference

DataConnectionDialog Class

DataConnectionDialog Members

Microsoft.VisualStudio.Data Namespace