PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Xaml Namespace / Command­Attribute Class / Command­Attribute Properties / Command­Attribute.​Execute­Method Property

CommandAttribute.ExecuteMethod Property

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

Namespace:  PostSharp.Patterns.Xaml
Assembly:  PostSharp.Patterns.Xaml (in PostSharp.Patterns.Xaml.dll) Version: (
public string ExecuteMethod { get; set; }

Property Value

Type: String

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 default ExecuteFoo value is used, where Foo is the name of the command.

See Also