Propriedade VCCLCompilerTool.TreatWChar_tAsBuiltInType

Obtém ou define um valor que indica se tratar wchar_t como um tipo interno.TreatWChar_tAsBuiltInTypeexpõe a funcionalidade do compilador /ZC:wchar_t (wchar_t é o tipo nativo) opção.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (em Microsoft.VisualStudio.VCProjectEngine.dll)

Sintaxe

'Declaração
Property TreatWChar_tAsBuiltInType As Boolean
bool TreatWChar_tAsBuiltInType { get; set; }
property bool TreatWChar_tAsBuiltInType {
    bool get ();
    void set (bool value);
}
abstract TreatWChar_tAsBuiltInType : bool with get, set
function get TreatWChar_tAsBuiltInType () : boolean
function set TreatWChar_tAsBuiltInType (value : boolean)

Valor de propriedade

Tipo: System.Boolean
true Se wchar_t é tratado como um tipo interno; Caso contrário, false.

Exemplos

Consulte Como: compilar o código de exemplo para extensibilidade do modelo de projeto para obter informações sobre como compilar e executar esse exemplo.

O exemplo seguinte modifica a TreatWChar_tAsBuiltInType propriedade no ambiente de desenvolvimento integrado (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.TreatWChar_tAsBuiltInType = False
    End Sub
End Module

Segurança do .NET Framework

Consulte também

Referência

VCCLCompilerTool Interface

Namespace Microsoft.VisualStudio.VCProjectEngine