PostSharp 6.7 / / 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(T1) Method (String, T1)

LogActivity.SetSuccess<T1> Method (String, T1)

Ends an activity (opened with OpenActivity(String) or OpenAsyncActivity(String) with success and specifies a success message with 1 parameter.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
public void SetSuccess<T1>(
	string formattingString,
	T1 arg1
)

Parameters

formattingString
Type: System.String
The success message with parameters, for instance Written {Count} lines.
arg1
Type: T1
Value of the first parameter.

Type Parameters

T1
Type of the first parameter.
See Also