Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / ILocation­Binding Interface / ILocation­Binding Methods / ILocation­Binding.​Execute(TPayload) Method

ILocationBinding.Execute<TPayload> Method

Provides a mechanism to execute a strongly-typed action that depends on the type of the current location.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.38.0 (5.0.38.0)
Syntax
C#
void Execute<TPayload>(
	ILocationBindingAction<TPayload> action,
	ref TPayload payload
)

Parameters

action
Type: PostSharp.Aspects.ILocationBindingAction<TPayload>
Action.
payload
Type: TPayload
Payload.

Type Parameters

TPayload
Type of the payload passed to the payload parameter.
See Also