VCCLCompilerTool.Detect64BitPortabilityProblems Eigenschaft

Definition

Ruft einen Wert ab oder legt diesen fest, der angibt, ob der Compiler auf 64-Bit-Portabilitätsprobleme überprüft. Detect64BitPortabilityProblems macht die Funktionalität der/Wp64 des Compilers (64-Bit-Portabilitäts Probleme erkennen) verfügbar.

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

Eigenschaftswert

Boolean

true, wenn der Compiler auf 64-Bit-Portabilitätsprobleme überprüft, 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- Detect64BitPortabilityProblems 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.Detect64BitPortabilityProblems = True  
    End Sub  
End Module  

Gilt für