ClassViewNavigationInfo.IsDataPresent Method (IDataObject, ClassViewNavigationInfoTypes, Boolean, Boolean)

Verifies whether an element contains a project name, reference name, full name, and node type. Also verifies whether an element is of a specific format.

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

Syntax

'Declaration
Public Shared Function IsDataPresent ( _
    data As IDataObject, _
    nodeTypes As ClassViewNavigationInfoTypes, _
    allowMultiples As Boolean, _
    allowOtherTypes As Boolean _
) As Boolean
'Usage
Dim data As IDataObject 
Dim nodeTypes As ClassViewNavigationInfoTypes 
Dim allowMultiples As Boolean 
Dim allowOtherTypes As Boolean 
Dim returnValue As Boolean 

returnValue = ClassViewNavigationInfo.IsDataPresent(data, _
    nodeTypes, allowMultiples, allowOtherTypes)
public static bool IsDataPresent(
    IDataObject data,
    ClassViewNavigationInfoTypes nodeTypes,
    bool allowMultiples,
    bool allowOtherTypes
)
public:
static bool IsDataPresent(
    IDataObject^ data, 
    ClassViewNavigationInfoTypes nodeTypes, 
    bool allowMultiples, 
    bool allowOtherTypes
)
public static function IsDataPresent(
    data : IDataObject, 
    nodeTypes : ClassViewNavigationInfoTypes, 
    allowMultiples : boolean, 
    allowOtherTypes : boolean
) : boolean

Parameters

  • allowMultiples
    Type: System.Boolean

    true to indicate that multiple infoType nodes are allowed; otherwise, false.

  • allowOtherTypes
    Type: System.Boolean

    true to allow other types of nodes; otherwise, false.

Return Value

Type: System.Boolean
true if the element is of the specified format; otherwise, false.

Remarks

If the allowOtherTypes parameter is true, the other node types are returned with GetData, and the caller ignores them.

.NET Framework Security

See Also

Reference

ClassViewNavigationInfo Class

ClassViewNavigationInfo Members

IsDataPresent Overload

Microsoft.VisualStudio.Modeling.Shell Namespace