Share via


VmmAddInBase.CheckIfEnabledFor Method (IList<ContextObject>)

 

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)

Syntax

public virtual bool CheckIfEnabledFor(
    IList<ContextObject> contextObjects
)
public:
virtual bool CheckIfEnabledFor(
    IList<ContextObject^>^ contextObjects
)
abstract CheckIfEnabledFor : 
        contextObjects:IList<ContextObject> -> bool
override CheckIfEnabledFor : 
        contextObjects:IList<ContextObject> -> bool
Public Overridable Function CheckIfEnabledFor (
    contextObjects As IList(Of ContextObject)
) As Boolean

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.

Remarks

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

See Also

VmmAddInBase Class
Microsoft.SystemCenter.VirtualMachineManager.UIAddIns Namespace

Return to top