Aracılığıyla paylaş


VCCLCompilerTool.DisableLanguageExtensions Özellik

Alır veya dil uzantıları engellenip engellenmeyeceğini gösteren bir değeri ayarlar.DisableLanguageExtensionsDerleyicinin işlevselliğini sunan /Za, /Ze (Dil Uzantılarını Devre Dışı Bırak) seçeneği.

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

Sözdizimi

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

Özellik Değeri

Tür: Boolean
true Eğer dil uzantıları bastırmak; Aksi takdirde, false.

Örnekler

Bkz: Nasıl yapılır: Proje Modeli Genişletilebilirliği için Örnek Kod Derleme derlemek ve bu örnek çalıştırmak nasıl öğrenmek için.

Aşağıdaki örnek değiştirir DisableLanguageExtensions ö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.DisableLanguageExtensions = True
    End Sub
End Module

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

VCCLCompilerTool Arabirim

Microsoft.VisualStudio.VCProjectEngine Ad Alanı