Compartir a través de


VCDebugSettings.SQLDebugging (Propiedad)

Habilita la depuración de SQL en el proyecto.

Espacio de nombres:  Microsoft.VisualStudio.VCProjectEngine
Ensamblado:  Microsoft.VisualStudio.VCProjectEngine (en Microsoft.VisualStudio.VCProjectEngine.dll)

Sintaxis

'Declaración
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)

Valor de propiedad

Tipo: System.Boolean
Es true si la depuración de SQL está habilitada; de lo contrario, es false.

Comentarios

Vea Cómo: Compilar el código de ejemplo de extensibilidad del modelo de proyecto para obtener información sobre cómo compilar y ejecutar este ejemplo.

Ejemplos

El ejemplo siguiente se modifica la propiedad de SQLDebugging en el entorno de desarrollo (IDE) integrado:

' 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

Seguridad de .NET Framework

Vea también

Referencia

VCDebugSettings Interfaz

Microsoft.VisualStudio.VCProjectEngine (Espacio de nombres)