Aracılığıyla paylaş


VCCLCompilerTool.CompileAsManaged Özellik

Alır veya derleyici seçenekleri gösteren bir değeri ayarlar.

Ad alanı:  Microsoft.VisualStudio.VCProjectEngine
Derleme:  Microsoft.VisualStudio.VCProjectEngine (Microsoft.VisualStudio.VCProjectEngine.dll içinde)

Sözdizimi

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

Özellik Değeri

Tür: Microsoft.VisualStudio.VCProjectEngine.compileAsManagedOptions
A compileAsManagedOptions numaralandırma.

Notlar

Use compileAsManagedOptions bu özelliğin değerini değiştirmek için numaralandırma.

Örnekler

Bkz: Nasıl yapılır: proje modeli genişletilebilirlik amacıyla örnek kodu derleyin derlemek ve bu örnek çalıştırma hakkında bilgi için.

Aşağıdaki örnek değiştirir CompileAsManaged tümleşik geliştirme ortamını (IDE) özelliği:

' 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")
        tool.CompileAsManaged = compileAsManagedOptions.managedMetaData
    End Sub
End Module

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

VCCLCompilerTool Arabirim

Microsoft.VisualStudio.VCProjectEngine Ad Alanı