PostSharp 6.8 / / 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, T2, T3, T4, T5) Method (String, T1, T2, T3, T4, T5)

LogActivity.SetSuccess<T1, T2, T3, T4, T5> Method (String, T1, T2, T3, T4, T5)

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

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.8.6.0 (6.8.6.0)
Syntax
C#
public void SetSuccess<T1, T2, T3, T4, T5>(
	string formattingString,
	T1 arg1,
	T2 arg2,
	T3 arg3,
	T4 arg4,
	T5 arg5
)

Parameters

formattingString
Type: System.String
The success message with parameters, for instance Written {Count} lines.
arg1
Type: T1
Value of the first parameter.
arg2
Type: T2
Value of the second parameter.
arg3
Type: T3
Value of the third parameter.
arg4
Type: T4
Value of the 4-th parameter.
arg5
Type: T5
Value of the 5-th parameter.

Type Parameters

T1
Type of the first parameter.
T2
Type of the second parameter.
T3
Type of the third parameter.
T4
Type of the 4-th parameter.
T5
Type of the 5-th parameter.
See Also