VCCLCompilerTool.TreatWChar_tAsBuiltInType (Propiedad)
Obtiene o establece un valor que indica si wchar_t se va a tratar como un tipo integrado. TreatWChar_tAsBuiltInType expone la funcionalidad de la opción /Zc:wchar_t (wchar_t es un tipo nativo) del compilador.
Espacio de nombres: Microsoft.VisualStudio.VCProjectEngine
Ensamblado: Microsoft.VisualStudio.VCProjectEngine (en Microsoft.VisualStudio.VCProjectEngine.dll)
Sintaxis
'Declaración
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 propiedad
Tipo: Boolean
Es true si wchar_t se trata como un tipo integrado; de lo contrario, es false.
Ejemplos
Vea Cómo: Compilar el código de ejemplo de extensibilidad del modelo de proyecto para obtener información sobre cómo compilar y ejecutar este ejemplo.
En el ejemplo siguiente se modifica la propiedad TreatWChar_tAsBuiltInType en el entorno de desarrollo 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
Seguridad de .NET Framework
- Plena confianza para el llamador inmediato. Un código de confianza parcial no puede utilizar este miembro. Para obtener más información, vea Utilizar bibliotecas de código que no es de plena confianza.