VCCLCompilerTool.ShowIncludes Eigenschaft

Definition

Ruft einen Wert ab oder legt einen Wert fest, der angibt, ob mit der Compilerausgabe eine Liste von Includedateien generiert werden soll. ShowIncludes macht die Funktionalität der/showIncludes-Option (Includedateien auflisten) des Compilers verfügbar.

public:
 property bool ShowIncludes { bool get(); void set(bool value); };
public:
 property bool ShowIncludes { bool get(); void set(bool value); };
[System.Runtime.InteropServices.DispId(86)]
public bool ShowIncludes { [System.Runtime.InteropServices.DispId(86)] get; [System.Runtime.InteropServices.DispId(86)] set; }
[<System.Runtime.InteropServices.DispId(86)>]
[<get: System.Runtime.InteropServices.DispId(86)>]
[<set: System.Runtime.InteropServices.DispId(86)>]
member this.ShowIncludes : bool with get, set
Public Property ShowIncludes As Boolean

Eigenschaftswert

Boolean

true, wenn mit der Compilerausgabe eine Liste von Includedateien generiert wird, andernfalls false.

Attribute

Beispiele

Weitere Informationen zum Kompilieren und Ausführen dieses Beispiels finden Sie unter Gewusst wie: Kompilieren von Beispiel Code für die Erweiterbarkeit von Projekt Modellen .

Im folgenden Beispiel wird die- ShowIncludes Eigenschaft in der integrierten Entwicklungsumgebung (Integrated Development Environment, IDE) geändert:

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

Public Module Module1  
    Sub Test()  
        Dim prj As VCProject  
        Dim cfgs, tools As IVCCollection  
        Dim cfg As VCConfiguration  
        Dim tool As VCCLCompilerTool  
        prj = DTE.Solution.Projects.Item(1).Object  
        cfgs = prj.Configurations  
        cfg = cfgs.Item(1)  
        tool = cfg.Tools("VCCLCompilerTool")  
        tool.ShowIncludes = True  
    End Sub  
End Module  

Gilt für