Partager via


VCDebugSettings.SQLDebugging, propriété

Active le débogage SQL pour le projet.

Espace de noms :  Microsoft.VisualStudio.VCProjectEngine
Assembly :  Microsoft.VisualStudio.VCProjectEngine (dans Microsoft.VisualStudio.VCProjectEngine.dll)

Syntaxe

'Déclaration
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)

Valeur de propriété

Type : Boolean
true si le débogage SQL est activé ; sinon, false.

Notes

Consultez Comment : compiler l'exemple de code pour l'extensibilité du modèle de projet pour savoir comment compiler et exécuter cet exemple.

Exemples

L'exemple suivant modifie la propriété d'SQLDebugging dans l'environnement de développement intégré (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

Sécurité .NET Framework

Voir aussi

Référence

VCDebugSettings Interface

Microsoft.VisualStudio.VCProjectEngine, espace de noms