IVsDataConnectionDialog.SelectedProvider Property
Gets or sets the data provider currently selected in the connection dialog box, using the data provider's GUID.
Namespace: Microsoft.VisualStudio.Data.Services
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'宣言
Property SelectedProvider As Guid
'使用
Dim instance As IVsDataConnectionDialog
Dim value As Guid
value = instance.SelectedProvider
instance.SelectedProvider = value
Guid SelectedProvider { get; set; }
property Guid SelectedProvider {
Guid get ();
void set (Guid value);
}
function get SelectedProvider () : Guid
function set SelectedProvider (value : Guid)
Property Value
Type: System.Guid
The Guid of the data provider currently selected in the dialog box.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The value of SelectedSource for the selected provider is an empty GUID, and the specified GUID is not empty. |
ArgumentException | The GUID specified for the selected provider is not a registered DDEX provider. |
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsDataConnectionDialog Interface