VCCLCompilerTool.ExceptionHandling Eigenschaft
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ruft einen Wert ab oder legt einen Wert fest, der für Aufrufe von Destruktoren für automatische Objekte während einer Stapelentladung, die von einer ausgelösten Ausnahme verursacht wurde, verwendet wird. ExceptionHandling macht die Funktionalität der/eh-Option (Ausnahme Behandlungsmodell) des Compilers verfügbar.
public:
property Microsoft::VisualStudio::VCProjectEngine::cppExceptionHandling ExceptionHandling { Microsoft::VisualStudio::VCProjectEngine::cppExceptionHandling get(); void set(Microsoft::VisualStudio::VCProjectEngine::cppExceptionHandling value); };
public:
property Microsoft::VisualStudio::VCProjectEngine::cppExceptionHandling ExceptionHandling { Microsoft::VisualStudio::VCProjectEngine::cppExceptionHandling get(); void set(Microsoft::VisualStudio::VCProjectEngine::cppExceptionHandling value); };
[System.Runtime.InteropServices.DispId(122)]
public Microsoft.VisualStudio.VCProjectEngine.cppExceptionHandling ExceptionHandling { [System.Runtime.InteropServices.DispId(122)] get; [System.Runtime.InteropServices.DispId(122)] set; }
[<System.Runtime.InteropServices.DispId(122)>]
[<get: System.Runtime.InteropServices.DispId(122)>]
[<set: System.Runtime.InteropServices.DispId(122)>]
member this.ExceptionHandling : Microsoft.VisualStudio.VCProjectEngine.cppExceptionHandling with get, set
Public Property ExceptionHandling As cppExceptionHandling
Eigenschaftswert
Ein cppExceptionHandling-Wert.
- Attribute
Beispiele
Weitere Informationen zum Kompilieren und Ausführen dieses Beispiels finden Sie unter Gewusst wie: Kompilieren von Beispiel Code für die Erweiterbarkeit von Projekt Modellen .
Im folgenden Beispiel wird die- ExceptionHandling Eigenschaft in der integrierten Entwicklungsumgebung (Integrated Development Environment, IDE) geändert:
' 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.ExceptionHandling = True
End Sub
End Module