VCCLCompilerTool.KeepComments Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Kaynak koddan bir açıklama şeridinin bastırılmayacağını gösteren bir değer alır veya ayarlar. KeepComments Derleyicinin /c (ön Işleme sırasında açıklamaları koru) seçeneğini sunar.
public:
property bool KeepComments { bool get(); void set(bool value); };
public:
property bool KeepComments { bool get(); void set(bool value); };
[System.Runtime.InteropServices.DispId(63)]
public bool KeepComments { [System.Runtime.InteropServices.DispId(63)] get; [System.Runtime.InteropServices.DispId(63)] set; }
[<System.Runtime.InteropServices.DispId(63)>]
[<get: System.Runtime.InteropServices.DispId(63)>]
[<set: System.Runtime.InteropServices.DispId(63)>]
member this.KeepComments : bool with get, set
Public Property KeepComments As Boolean
Özellik Değeri
true kaynak koddan bir yorum şeridi bastırılmadıysanız; Aksi takdirde, false .
- Öznitelikler
Örnekler
Bu örneği derlemek ve çalıştırmak hakkında bilgi için bkz. nasıl yapılır: proje modeli genişletilebilirliği Için örnek kod derleme .
Aşağıdaki örnek, KeepComments Özelliği tümleşik geliştirme ortamında (IDE) değiştirir:
' 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.GeneratePreprocessedFile = preprocessOption.preprocessYes
tool.KeepComments = True
End Sub
End Module