PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Log­Activity Class / Log­Activity Methods / Log­Activity.​Set­Failure Method / Log­Activity.​Set­Failure Method (String)

LogActivity.SetFailure Method (String)

Ends an activity (opened with OpenActivity(String) or OpenAsyncActivity(String) with failure and specifies a parameterless failure message.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
public void SetFailure(
	string text
)

Parameters

text
Type: System.String
The failure message.
See Also