Share via


VCCLCompilerTool.EnableEnhancedInstructionSet (Propiedad)

Obtiene o establece un valor que permite el uso de instrucciones situadas en procesadores que admiten conjuntos de instrucciones mejorados, como las mejoras de SSE y SSE2 a IA-32. EnableEnhancedInstructionSet expone la funcionalidad de la opción /ARCH del compilador.

Espacio de nombres:  Microsoft.VisualStudio.VCProjectEngine
Ensamblado:  Microsoft.VisualStudio.VCProjectEngine (en Microsoft.VisualStudio.VCProjectEngine.dll)

Sintaxis

'Declaración
Property EnableEnhancedInstructionSet As enhancedInstructionSetType
enhancedInstructionSetType EnableEnhancedInstructionSet { get; set; }
property enhancedInstructionSetType EnableEnhancedInstructionSet {
    enhancedInstructionSetType get ();
    void set (enhancedInstructionSetType value);
}
abstract EnableEnhancedInstructionSet : enhancedInstructionSetType with get, set
function get EnableEnhancedInstructionSet () : enhancedInstructionSetType 
function set EnableEnhancedInstructionSet (value : enhancedInstructionSetType)

Valor de propiedad

Tipo: Microsoft.VisualStudio.VCProjectEngine.enhancedInstructionSetType
Valor enhancedInstructionSetType.

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.

El ejemplo siguiente muestra el valor de la propiedad EnableEnhancedInstructionSet 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")
        MsgBox("Current EnableEnhancedInstructionSet value: " & _
          tool.EnableEnhancedInstructionSet.ToString)
    End Sub
End Module

Seguridad de .NET Framework

Vea también

Referencia

VCCLCompilerTool Interfaz

Microsoft.VisualStudio.VCProjectEngine (Espacio de nombres)