Aracılığıyla paylaş


VCCLCompilerTool.ExpandAttributedSource Özellik

Alır veya kaynak dosyasına eklenen genişletilmiş öznitelikleri olan bir döküm dosyası oluşturulup oluşturulmayacağını gösteren bir değeri ayarlar.ExpandAttributedSourceDerleyici 's iþlevselliði /FX (kod eklenirse birleştirme) seçeneği.

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

Sözdizimi

'Bildirim
Property ExpandAttributedSource As Boolean
bool ExpandAttributedSource { get; set; }
property bool ExpandAttributedSource {
    bool get ();
    void set (bool value);
}
abstract ExpandAttributedSource : bool with get, set
function get ExpandAttributedSource () : boolean
function set ExpandAttributedSource (value : boolean)

Özellik Değeri

Tür: System.Boolean
true kaynak dosyasına eklenen genişletilmiş öznitelikleri olan bir döküm dosyası oluşturmak için; Aksi halde, false.

Ö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 ExpandAttributedSource 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.ExpandAttributedSource = True
    End Sub
End Module

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

VCCLCompilerTool Arabirim

Microsoft.VisualStudio.VCProjectEngine Ad Alanı