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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。