ModelingDocView.IsSupported Method

Verifies whether the document window supports an item in the Toolbox.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Syntax

'Declaration
Public Function IsSupported ( _
    data As IDataObject _
) As Integer
public int IsSupported(
    IDataObject data
)
public:
virtual int IsSupported(
    IDataObject^ data
) sealed
abstract IsSupported : 
        data:IDataObject -> int  
override IsSupported : 
        data:IDataObject -> int
public final function IsSupported(
    data : IDataObject
) : int

Parameters

Return Value

Type: System.Int32
S_OK if the item is supported in the document window; otherwise, E_FAIL.

Implements

IVsToolboxUser.IsSupported(IDataObject)

Remarks

Toolbox items include shapes and connectors.

This method is an implementation of the IsSupported interface.

.NET Framework Security

See Also

Reference

ModelingDocView Class

Microsoft.VisualStudio.Modeling.Shell Namespace