Share via


ClassViewNavigationInfo.IsDataPresent Method

Definition

Overloads

IsDataPresent(IDataObject)

Does this data object contain navigation info data?

IsDataPresent(IDataObject, ClassViewNavigationInfoTypes, Boolean, Boolean)

Test whether data of a given format is present in the string

IsDataPresent(IDataObject)

Does this data object contain navigation info data?

public:
 static bool IsDataPresent(System::Windows::Forms::IDataObject ^ data);
public static bool IsDataPresent (System.Windows.Forms.IDataObject data);
static member IsDataPresent : System.Windows.Forms.IDataObject -> bool
Public Shared Function IsDataPresent (data As IDataObject) As Boolean

Parameters

data
IDataObject

A data object

Returns

true if data is present

Applies to

IsDataPresent(IDataObject, ClassViewNavigationInfoTypes, Boolean, Boolean)

Test whether data of a given format is present in the string

public:
 static bool IsDataPresent(System::Windows::Forms::IDataObject ^ data, Microsoft::VisualStudio::Modeling::Shell::ClassViewNavigationInfoTypes nodeTypes, bool allowMultiples, bool allowOtherTypes);
public static bool IsDataPresent (System.Windows.Forms.IDataObject data, Microsoft.VisualStudio.Modeling.Shell.ClassViewNavigationInfoTypes nodeTypes, bool allowMultiples, bool allowOtherTypes);
static member IsDataPresent : System.Windows.Forms.IDataObject * Microsoft.VisualStudio.Modeling.Shell.ClassViewNavigationInfoTypes * bool * bool -> bool
Public Shared Function IsDataPresent (data As IDataObject, nodeTypes As ClassViewNavigationInfoTypes, allowMultiples As Boolean, allowOtherTypes As Boolean) As Boolean

Parameters

data
IDataObject

The data object to test

nodeTypes
ClassViewNavigationInfoTypes

The types of info to look for

allowMultiples
Boolean

True multiple nodes of infoType are allowed.

allowOtherTypes
Boolean

True if other types can be returned as well. Other node types types will be returned by GetData and ignored by the caller.

Returns

true if the required information is present in the data object

Applies to