获取当前用户控件作为 UserControl 对象。
命名空间: Microsoft.VisualStudio.Data.Framework
程序集: Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)
语法
声明
Public ReadOnly Property Control As UserControl
public UserControl Control { get; }
public:
virtual property UserControl^ Control {
UserControl^ get () sealed;
}
abstract Control : UserControl
override Control : UserControl
final function get Control () : UserControl
属性值
类型:System.Windows.Forms.UserControl
UserControl 对象。
备注
此属性返回当前对象。具有DDEX提供程序若要从当前 UserControl 对象分隔 IVsDataConnectionUIControl 实现,用户界面的方案。在这种情况下,DDEX提供程序应直接从 IVsDataConnectionUIControl 接口继承而不是此选件类。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。