VCCLCompilerTool.Detect64BitPortabilityProblems Свойство

Определение

Получает или задает значение, указывающее, проверяет ли компилятор проблемы переносимости на 64-разрядные платформы. Detect64BitPortabilityProblems предоставляет функциональные возможности параметра компилятора /Wp64 (обнаружение 64-разрядных проблем переносимости) .

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

Значение свойства

Boolean

Значение true, если компилятор проверяет ошибки переносимости на 64-разрядные платформы; в противном случае — значение false.

Атрибуты

Примеры

Сведения о том, как скомпилировать и запустить этот пример, см. в разделе как скомпилировать пример кода для расширения модели проекта .

В следующем примере изменяется Detect64BitPortabilityProblems свойство в интегрированной среде разработки (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.Detect64BitPortabilityProblems = True  
    End Sub  
End Module  

Применяется к