IVsToolbox5.IsItemEnabled Method
Gets the enabled state of the specified item.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Syntax
'Declaration
Function IsItemEnabled ( _
pDataObject As IDataObject, _
fForceEvaluation As Boolean, _
<OutAttribute> ByRef pEnabled As Boolean _
) As Integer
int IsItemEnabled(
IDataObject pDataObject,
bool fForceEvaluation,
out bool pEnabled
)
int IsItemEnabled(
[InAttribute] IDataObject^ pDataObject,
[InAttribute] bool fForceEvaluation,
[OutAttribute] bool% pEnabled
)
abstract IsItemEnabled :
pDataObject:IDataObject *
fForceEvaluation:bool *
pEnabled:bool byref -> int
function IsItemEnabled(
pDataObject : IDataObject,
fForceEvaluation : boolean,
pEnabled : boolean
) : int
Parameters
pDataObject
Type: Microsoft.VisualStudio.OLE.Interop.IDataObjectThe item as an IDataObject.
fForceEvaluation
Type: Booleantrue to force an evaluation of the item.
pEnabled
Type: Boolean%[out] true if the item is enabled, otherwise false.
Return Value
Type: Int32
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.