共用方式為


IVsDataConnectionDialog.SelectedSource 屬性

取得或設定表示目前選取的資料來源的 GUID 值。

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

語法

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

屬性值

類型:Guid
傳回反映目前資料來源的 Guid 物件。

例外狀況

例外狀況 條件
ArgumentException

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

備註

資料來源的這個值反映 (如果有的話)。 [選擇/變更資料來源] 在對話方塊的 [資料來源] 清單中選取。

.NET Framework 安全性

請參閱

參考

IVsDataConnectionDialog 介面

Microsoft.VisualStudio.Data.Services 命名空間