Share via


ElementViewModel.GetPromotedCommands Method

Gets any commands promoted by their child elements.

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

Syntax

'Declaration
Protected Function GetPromotedCommands As IEnumerable(Of CommandModel)
protected IEnumerable<CommandModel> GetPromotedCommands()
protected:
IEnumerable<CommandModel^>^ GetPromotedCommands()
protected function GetPromotedCommands() : IEnumerable<CommandModel>

Return Value

Remarks

Commands promoted by children via the PromoteCommandsAttribute appear in their parent's Commands list.

See Also

ElementViewModel Class

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