VCCLCompilerTool.CompileAsManaged Özellik
Alır veya derleyici seçeneklerini 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
Kullanım compileAsManagedOptions bu özelliğin değerini değiştirmek için numaralandırma.
Örnekler
Bkz: Nasıl yapılır: Proje Modeli Genişletilebilirliği için Örnek Kod Derleme bilgi derlemek ve bu örnek çalıştırmak nasıl.
Aşağıdaki örnek değiştirir CompileAsManaged özelliği, tümleşik geliştirme ortamında (IDE):
' 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
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen Güvenilen Koddan Kitaplıkları Kullanma.