This custom EventArgs class defines the additional information that will be sent to methods that handle the ObjectList.ShowItemCommands event. This information includes the ObjectListItem that is being bound in the list (ListItem), and a the collection of commands that will be shown (Commands). You can programmatically add or remove ObjectListCommand instances to this collection to create an item-specific set of commands.
public class ObjectListShowCommandsEventArgs : EventArgs { // Public Constructors public ObjectListShowCommandsEventArgs(ObjectListItem item, ObjectListCommandCollection commands); // Public Instance Properties public ObjectListCommandCollection Commands{get; } public ObjectListItem ListItem{get; } }