VmmAddInBase::CheckIfEnabledFor Method (IList<ContextObject^>^)

System Center
 

Updated: June 20, 2017

Applies To: System Center 2016 - Virtual Machine Manager

Determines if the ribbon button represented by this add-in is enabled for the provided context objects.

Namespace:   Microsoft.SystemCenter.VirtualMachineManager.UIAddIns
Assembly:  Microsoft.SystemCenter.VirtualMachineManager.UIAddIns (in Microsoft.SystemCenter.VirtualMachineManager.UIAddIns.dll)

public:
virtual bool CheckIfEnabledFor(
	IList<ContextObject^>^ contextObjects
)

Parameters

contextObjects
Type: System.Collections.Generic::IList<ContextObject^>^

Type: T:System.Collections.Generic.IList{Microsoft.SystemCenter.VirtualMachineManager.UIAddIns.ContextTypes.ContextObject}

The list of context objects. This list can contain the context objects of the navigation tree or the selected items from a DataGrid view.

Return Value

Type: System::Boolean

Type: Boolean

true to enable the ribbon button; otherwise false.

If not implemented in a derived class, will return true by default.

Return to top
Show: