Freigeben über


VCProjectConfigurationProperties.ManagedExtensions-Eigenschaft

Gibt an, dass bei dieser Konfiguration Visual C++ verwendet wird. Macht die Funktionalität der /clr (Common Language Runtime-Kompilierung)-Option des C++-Compilers verfügbar.

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

Syntax

'Declaration
Property ManagedExtensions As compileAsManagedOptions
compileAsManagedOptions ManagedExtensions { get; set; }
property compileAsManagedOptions ManagedExtensions {
    compileAsManagedOptions get ();
    void set (compileAsManagedOptions value);
}
abstract ManagedExtensions : compileAsManagedOptions with get, set
function get ManagedExtensions () : compileAsManagedOptions 
function set ManagedExtensions (value : compileAsManagedOptions)

Eigenschaftswert

Typ: Microsoft.VisualStudio.VCProject.compileAsManagedOptions
Eine compileAsManagedOptions-Enumeration.

Hinweise

Wenn Sie diese Eigenschaft festlegen anstelle der Compiler CompileAsManaged-Eigenschaft Tools, dann andere, zugehörige Eigenschaften für den Linker und VCWebServiceProxyGeneratorTool für Sie auch festgelegt werden. Die Eigenschaft CompileAsManaged des Compilers festlegen, überschreibt direkt die ManagedExtensions-Eigenschaft auf der Konfiguration.

Weitere Informationen zum Kompilieren und Ausführen dieses Beispiels finden Sie unter Gewusst wie: Kompilieren von Beispielcode für die Erweiterbarkeit von Projektmodellen.

Beispiele

[Visual Basic]

Im folgenden Beispielcode wird die VCConfigurationManagedExtensions-Eigenschaft des Objekts in der Entwicklungsumgebung:

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

Public Module Module1
    Sub Test()
        Dim MyString As String
        Dim prj As VCProject
        Dim cfgs As IVCCollection
        Dim cfg As VCConfiguration
        Dim MyDbg As VCDebugSettings
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        cfg.ManagedExtensions = True
    End Sub
End Module

.NET Framework-Sicherheit

Siehe auch

Referenz

VCProjectConfigurationProperties Schnittstelle

Microsoft.VisualStudio.VCProject-Namespace