VCDebugSettings.SQLDebugging 属性

为项目启用 SQL 调试。

命名空间:  Microsoft.VisualStudio.VCProjectEngine
程序集:  Microsoft.VisualStudio.VCProjectEngine(在 Microsoft.VisualStudio.VCProjectEngine.dll 中)

语法

声明
Property SQLDebugging As Boolean
bool SQLDebugging { get; set; }
property bool SQLDebugging {
    bool get ();
    void set (bool value);
}
abstract SQLDebugging : bool with get, set
function get SQLDebugging () : boolean
function set SQLDebugging (value : boolean)

属性值

类型:System.Boolean
如果启用 SQL 调试,则为 true;否则为 false。

备注

有关如何编译和运行此示例的信息,请参见 如何:编译项目模型扩展性示例代码

示例

下面的示例在集成开发环境 (ide) 中修改 SQLDebugging 属性 (IDE):

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim mystring As String
        Dim prj As VCProject
        Dim cfgs, tools As IVCCollection
        Dim cfg As VCConfiguration
        Dim tool As VCDebugSettings
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.DebugSettings
        tool.SQLDebugging = True
    End Sub
End Module

.NET Framework 安全性

请参见

参考

VCDebugSettings 接口

Microsoft.VisualStudio.VCProjectEngine 命名空间