PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Log­Activity Class / Log­Activity Methods / Log­Activity.​Set­Success Method / Log­Activity.​Set­Success Method (String, Object[])

LogActivity.SetSuccess Method (String, Object[])

Ends an activity (opened with [!:OpenActivity(string)] or [!:OpenAsyncActivity(string)] with success and specifies a success message with an array of parameters.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public void SetSuccess(
	string text,
	params Object[] args
)

Parameters

text
Type: System.String
The success message with parameters, for instance Written {Count} lines.
args
Type: System.Object[]
An array of parameters.
See Also