PostSharpAPI ReferencePost­Sharp.​Patterns.​XamlCommand­AttributeExecute­Method
Open sandboxFocus

CommandAttribute.ExecuteMethod Property

ExecuteMethod

Gets or sets the name of the method that implements the command logic. This method corresponds to the to the System.Windows.Input.ICommand.Execute(System.Object) method. It is called every time the command is invoked.

Declaration
public string ExecuteMethod { get; set; }
Property Value
Type Description
System.String
Remarks

The Execute method must be declared in the same class as the command property and can have zero parameter or one parameter of any type, which becomes the command parameter.

If this property is not set, then the aspect will look for a method named Foo or ExecuteFoo, where Foo is the name of the command without the Command suffix.