VCCLCompilerTool.EnableEnhancedInstructionSet, propriété

Obtient ou définit une valeur qui active l'utilisation de l'instruction recherchée sur les processeurs qui prennent en charge les jeux d'instructions améliorés, tels que les améliorations SSE et SSE2 à IA-32.EnableEnhancedInstructionSet expose les fonctions de l'option /ARCH du compilateur.

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

Syntaxe

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

Valeur de propriété

Type : Microsoft.VisualStudio.VCProjectEngine.enhancedInstructionSetType
Valeur enhancedInstructionSetType.

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 répertorie la valeur de la propriété d'EnableEnhancedInstructionSet 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")
        MsgBox("Current EnableEnhancedInstructionSet value: " & _
          tool.EnableEnhancedInstructionSet.ToString)
    End Sub
End Module

Sécurité .NET Framework

Voir aussi

Référence

VCCLCompilerTool Interface

Microsoft.VisualStudio.VCProjectEngine, espace de noms