Share via


VCProjectConfigurationProperties.ConfigurationType, propriété

Obtient et définit le type de sortie que cette configuration génère.

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

Syntaxe

'Déclaration
Property ConfigurationType As ConfigurationTypes
ConfigurationTypes ConfigurationType { get; set; }
property ConfigurationTypes ConfigurationType {
    ConfigurationTypes get ();
    void set (ConfigurationTypes value);
}
abstract ConfigurationType : ConfigurationTypes with get, set
function get ConfigurationType () : ConfigurationTypes 
function set ConfigurationType (value : ConfigurationTypes)

Valeur de propriété

Type : Microsoft.VisualStudio.VCProject.ConfigurationTypes
Énumération ConfigurationTypes.

Notes

Utilisez l'énumération d'ConfigurationTypes pour modifier la valeur de cette propriété.

Exemples

[Visual Basic]

Le code exemple suivant modifie la propriété d'ConfigurationType dans l'environnement de développement :

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim cfgs As IVCCollection
        Dim cfg As VCConfiguration
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        cfg.ConfigurationType = ConfigurationTypes.typeStaticLibrary
    End Sub
End Module

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

Sécurité .NET Framework

Voir aussi

Référence

VCProjectConfigurationProperties Interface

Microsoft.VisualStudio.VCProject, espace de noms