_Exception.Source Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Provides COM objects with version-independent access to the Exception.Source property.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

string Source { get; set; }

Property Value

Type: System.String

The name of the application or the object that causes the error.

This method is for access to managed classes from unmanaged code and should not be called from managed code.

The Exception.Source property gets or sets the name of the application or the object that causes the error.

.NET Framework
Available since 2.0
Return to top
Show: