Compartir a través de


DefaultElementCollectionAddCommand Class

Default Command Model implementation for the add command on ElementCollectionViewModel instances.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel
Assembly:  Microsoft.Practices.EnterpriseLibrary.Configuration.DesignTime (in Microsoft.Practices.EnterpriseLibrary.Configuration.DesignTime.dll)

Syntax

'Declaration
Public Class DefaultElementCollectionAddCommand _
    Inherits CommandModel
public class DefaultElementCollectionAddCommand : CommandModel
public ref class DefaultElementCollectionAddCommand : public CommandModel
public class DefaultElementCollectionAddCommand extends CommandModel

Remarks

This is the default add command created for any ConfigurationElementCollection.
For homogeneous collections where only one type can ever be added, this command when invoked via InnerExecute(Object), will add a new instance of that type to the collection.
For PolymorphicConfigurationElementCollection<T>, this command will contain a collection of the child ConfigurationElement add commands, generally one for each type that can be added.
To change the commands for a configuration element, CommandAttribute

Inheritance Hierarchy

System.Object
  Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel.CommandModel
    Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel.DefaultElementCollectionAddCommand

See Also

DefaultElementCollectionAddCommand Members

Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel Namespace