_Exception.InnerException Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides COM objects with version-independent access to the InnerException property.
public:
property Exception ^ InnerException { Exception ^ get(); };
public Exception InnerException { get; }
member this.InnerException : Exception
Public ReadOnly Property InnerException As Exception
Property Value
An instance of Exception that describes the error that caused the current exception. The InnerException property returns the same value that was passed to the constructor, or a null reference (Nothing
in Visual Basic) if the inner exception value was not supplied to the constructor. This property is read-only.
Remarks
This method is for access to managed classes from unmanaged code and should not be called from managed code.
The Exception.InnerException property gets the Exception instance that caused the current exception.
Applies to
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈