Partager via


DataConnectionDialog.SelectedSource Property

Retrieves or sets a GUID value indicating the current selected data source.

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

Syntax

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

Property Value

Type: System.Guid
Returns a GUID object instance reflecting the current data source.

Exceptions

Exception Condition
ArgumentException

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

Remarks

This value reflects which data source (if any) is selected in the Data Source list box on the Data Source dialog box.

.NET Framework Security

See Also

Reference

DataConnectionDialog Class

Microsoft.VisualStudio.Data Namespace