共用方式為


IVsDataConnectionDialog.SelectedProvider 屬性

取得或設定連接對話方塊中目前選取的資料提供者,使用資料提供者的 GUID。

命名空間:  Microsoft.VisualStudio.Data.Services
組件:  Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)

語法

'宣告
Property SelectedProvider As Guid
Guid SelectedProvider { get; set; }
property Guid SelectedProvider {
    Guid get ();
    void set (Guid value);
}
abstract SelectedProvider : Guid with get, set
function get SelectedProvider () : Guid 
function set SelectedProvider (value : Guid)

屬性值

類型:Guid
在 對話方塊中目前選取的資料提供者的 Guid

例外狀況

例外狀況 條件
InvalidOperationException

SelectedSource 的值所選取之提供者的 GUID,是空的,而且指定的 GUID 不是空的。

ArgumentException

針對選取的提供者指定的 GUID 不是註冊 DDEX 提供者。

.NET Framework 安全性

請參閱

參考

IVsDataConnectionDialog 介面

Microsoft.VisualStudio.Data.Services 命名空間