Share via


VCCLCompilerTool.TreatWChar_tAsBuiltInType, propriété

Obtient ou définit une valeur indiquant si wchar_t traiter comme un type intégré.TreatWChar_tAsBuiltInType expose les fonctions de l'option /Zc:wchar_t (wchar_t est un type natif) du compilateur.

Espace de noms :  Microsoft.VisualStudio.VCProjectEngine
Assembly :  Microsoft.VisualStudio.VCProjectEngine (dans Microsoft.VisualStudio.VCProjectEngine.dll)

Syntaxe

'Déclaration
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)

Valeur de propriété

Type : System.Boolean
true si wchar_t est considéré comme un type intégré ; sinon, false.

Exemples

Consultez l'Comment : compiler l'exemple de code pour l'extensibilité du modèle de projet pour plus d'informations sur comment compiler et exécuter cet exemple.

L'exemple suivant modifie la propriété d'TreatWChar_tAsBuiltInType dans (IDE) l'environnement de développement intégré :

' 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

Sécurité .NET Framework

Voir aussi

Référence

VCCLCompilerTool Interface

Microsoft.VisualStudio.VCProjectEngine, espace de noms