Condividi tramite


Proprietà VCCLCompilerTool.TreatWChar_tAsBuiltInType

Ottiene o imposta un valore che indica se considerare wchar_t come tipo incorporato.TreatWChar_tAsBuiltInType espone la funzionalità del compilatore /Zc:wchar_t (Tipo nativo wchar_t) opzione.

Spazio dei nomi:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Sintassi

'Dichiarazione
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)

Valore proprietà

Tipo: System.Boolean
true se wchar_t viene considerato come un tipo incorporato; in caso contrario, false.

Esempi

vedere Procedura: compilare codice di esempio per l'Extensibility del modello di progetto per informazioni su come compilare ed eseguire l'esempio.

Nell'esempio seguente viene modificato TreatWChar_tAsBuiltInType proprietà nell'ambiente di sviluppo (IDE) integrato (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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

VCCLCompilerTool Interfaccia

Spazio dei nomi Microsoft.VisualStudio.VCProjectEngine