Exception.Source Property
.NET Framework (current version)
Gets or sets the name of the application or the object that causes the error.
Assembly: mscorlib (in mscorlib.dll)
Implements
_Exception.Source| Exception | Condition |
|---|---|
| ArgumentException | The object must be a runtime System.Reflection object |
If the Source property is not set explicitly, the runtime automatically sets it to the name of the assembly in which the exception originated.
Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Show: