VCProjectConfigurationProperties.ManagedExtensions Eigenschaft

Definition

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

public:
 property Microsoft::VisualStudio::VCProject::compileAsManagedOptions ManagedExtensions { Microsoft::VisualStudio::VCProject::compileAsManagedOptions get(); void set(Microsoft::VisualStudio::VCProject::compileAsManagedOptions value); };
public:
 property Microsoft::VisualStudio::VCProject::compileAsManagedOptions ManagedExtensions { Microsoft::VisualStudio::VCProject::compileAsManagedOptions get(); void set(Microsoft::VisualStudio::VCProject::compileAsManagedOptions value); };
[System.Runtime.InteropServices.DispId(740)]
public Microsoft.VisualStudio.VCProject.compileAsManagedOptions ManagedExtensions { [System.Runtime.InteropServices.DispId(740)] get; [System.Runtime.InteropServices.DispId(740)] set; }
[<System.Runtime.InteropServices.DispId(740)>]
[<get: System.Runtime.InteropServices.DispId(740)>]
[<set: System.Runtime.InteropServices.DispId(740)>]
member this.ManagedExtensions : Microsoft.VisualStudio.VCProject.compileAsManagedOptions with get, set
Public Property ManagedExtensions As compileAsManagedOptions

Eigenschaftswert

compileAsManagedOptions

Eine compileAsManagedOptions-Enumeration.

Attribute

Beispiele

[Visual Basic]

Der folgende Beispielcode ändert die VCConfiguration -Eigenschaft des-Objekts ManagedExtensions 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  

Hinweise

Wenn Sie diese Eigenschaft anstelle der-Eigenschaft des Compilertools festlegen CompileAsManaged , werden andere, verwandte Eigenschaften für den Linker und <xref:Microsoft.VisualStudio.VCProjectEngine.VCWebServiceProxyGeneratorTool> auch für Sie festgelegt. Wenn Sie die-Eigenschaft des Compilers direkt festlegen, wird CompileAsManaged die-Eigenschaft der Konfiguration überschrieben ManagedExtensions .

Weitere Informationen zum Kompilieren und Ausführen dieses Beispiels finden Sie unter Gewusst wie: Kompilieren von Beispiel Code für die Erweiterbarkeit von Projekt Modellen .

Gilt für