ExceptionExtensionsSetSupplementalMessage Method |
Sets the supplemental message on an exception object.
Namespace:
Dundas.BI
Assembly:
Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.4.0.1000)
Syntax public static Exception SetSupplementalMessage(
this Exception exception,
string? supplementalMessage
)
<ExtensionAttribute>
Public Shared Function SetSupplementalMessage (
exception As Exception,
supplementalMessage As String
) As Exception
public:
[ExtensionAttribute]
static Exception^ SetSupplementalMessage(
Exception^ exception,
String^ supplementalMessage
)
[<ExtensionAttribute>]
static member SetSupplementalMessage :
exception : Exception *
supplementalMessage : string -> Exception
Parameters
- exception
- Type: SystemException
The exception. - supplementalMessage
- Type: SystemString
The supplemental message to assign to exception.
Return Value
Type:
ExceptionThe provided exception.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Exception. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions See Also