Udostępnij za pośrednictwem


Właściwość VCCLCompilerTool.UndefineAllPreprocessorDefinitions —

Pobiera lub ustawia wartość określającą, czy nie zdefiniowany wszystkich uprzednio zdefiniowane wartości preprocesora.UndefineAllPreprocessorDefinitionsOpisuje funkcje kompilatora / /U U, (Usuń definicję symbole) opcji.

Przestrzeń nazw:  Microsoft.VisualStudio.VCProjectEngine
Zestaw:  Microsoft.VisualStudio.VCProjectEngine (w Microsoft.VisualStudio.VCProjectEngine.dll)

Składnia

'Deklaracja
Property UndefineAllPreprocessorDefinitions As Boolean
bool UndefineAllPreprocessorDefinitions { get; set; }
property bool UndefineAllPreprocessorDefinitions {
    bool get ();
    void set (bool value);
}
abstract UndefineAllPreprocessorDefinitions : bool with get, set
function get UndefineAllPreprocessorDefinitions () : boolean
function set UndefineAllPreprocessorDefinitions (value : boolean)

Wartość właściwości

Typ: System.Boolean
true Jeśli uprzednio zdefiniowane wartości preprocesora są niezdefiniowane; w przeciwnym razie false.

Przykłady

Zobacz Jak: kompilowania przykładowy kod do projektu modelu rozszerzalności informacje na temat skompilować i uruchomić ten przykład.

Poniższy przykład modyfikuje UndefineAllPreprocessorDefinitions właściwość w zintegrowane środowisko programistyczne (IDE):

' 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.UndefineAllPreprocessorDefinitions = True
    End Sub
End Module

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

VCCLCompilerTool Interfejs

Przestrzeń nazw Microsoft.VisualStudio.VCProjectEngine