IVsToolbox5.IsItemEnabled(IDataObject, Boolean, Boolean) Method

Definition

Gets the enabled state of the specified item.

int IsItemEnabled(Microsoft::VisualStudio::OLE::Interop::IDataObject const & pDataObject, bool fForceEvaluation, [Runtime::InteropServices::Out] bool & pEnabled);

Parameters

pDataObject
IDataObject

The item as an IDataObject.

fForceEvaluation
Boolean

true to force an evaluation of the item.

pEnabled
Boolean

[out] true if the item is enabled, otherwise false.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

If the item is currently pending for idle-time evaluation, pEnabled will be false unless fForceEvaluation is set to true.

Applies to