IVsToolbox5::IsItemEnabled Method (IDataObject^, Boolean, Boolean)
Visual Studio 2015
Gets the enabled state of the specified item.
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
int IsItemEnabled( IDataObject^ pDataObject, bool fForceEvaluation, [OutAttribute] bool% pEnabled )
Parameters
- pDataObject
-
Type:
Microsoft.VisualStudio.OLE.Interop::IDataObject^
The item as an IDataObject.
- fForceEvaluation
-
Type:
System::Boolean
true to force an evaluation of the item.
- pEnabled
-
Type:
System::Boolean
[out] true if the item is enabled, otherwise false.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
If the item is currently pending for idle-time evaluation, pEnabled will be false unless fForceEvaluation is set to true.
Show: