VCConfiguration.ConfigurationType-Eigenschaft

Ruft den Typ der Ausgabe ab, der bei dieser Konfiguration generiert wird, oder legt diesen fest.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Syntax

'Declaration
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)

Eigenschaftswert

Typ: Microsoft.VisualStudio.VCProjectEngine.ConfigurationTypes
Eine ConfigurationTypes-Enumeration.

Hinweise

Verwenden Sie die ConfigurationTypes-Enumeration legen Sie den Wert dieser Eigenschaft ändern.

Beispiele

Weitere Informationen finden Sie unter Gewusst wie: Kompilieren von Beispielcode für die Erweiterbarkeit von Projektmodellen Informationen zum Ändern dieses Beispiel kompiliert und ausgeführt wird.

Im folgenden Beispiel wird die ConfigurationType-Eigenschaft in der integrierten Entwicklungsumgebung (IDE):

' 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

.NET Framework-Sicherheit

Siehe auch

Referenz

VCConfiguration Schnittstelle

Microsoft.VisualStudio.VCProjectEngine-Namespace