Share via


IVsToolbox5.IsItemEnabled(IDataObject, Boolean, Boolean) Method

Definition

Gets the enabled state of the specified item.

public:
 int IsItemEnabled(Microsoft::VisualStudio::OLE::Interop::IDataObject ^ pDataObject, bool fForceEvaluation, [Runtime::InteropServices::Out] bool % pEnabled);
int IsItemEnabled(Microsoft::VisualStudio::OLE::Interop::IDataObject const & pDataObject, bool fForceEvaluation, [Runtime::InteropServices::Out] bool & pEnabled);
public int IsItemEnabled (Microsoft.VisualStudio.OLE.Interop.IDataObject pDataObject, bool fForceEvaluation, out bool pEnabled);
abstract member IsItemEnabled : Microsoft.VisualStudio.OLE.Interop.IDataObject * bool * bool -> int
Public Function IsItemEnabled (pDataObject As IDataObject, fForceEvaluation As Boolean, ByRef pEnabled As Boolean) As Integer

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