Partilhar via


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

'Declaração
Public Shared Function IsDataPresent ( _
    data As IDataObject, _
    nodeTypes As ClassViewNavigationInfoTypes, _
    allowMultiples As Boolean, _
    allowOtherTypes As Boolean _
) As Boolean
public static bool IsDataPresent(
    IDataObject data,
    ClassViewNavigationInfoTypes nodeTypes,
    bool allowMultiples,
    bool allowOtherTypes
)
public:
static bool IsDataPresent(
    IDataObject^ data, 
    ClassViewNavigationInfoTypes nodeTypes, 
    bool allowMultiples, 
    bool allowOtherTypes
)
static member IsDataPresent : 
        data:IDataObject * 
        nodeTypes:ClassViewNavigationInfoTypes * 
        allowMultiples:bool * 
        allowOtherTypes:bool -> bool 
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

IsDataPresent Overload

Microsoft.VisualStudio.Modeling.Shell Namespace