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
data
Type: System.Windows.Forms.IDataObjectThe element to check.
nodeTypes
Type: Microsoft.VisualStudio.Modeling.Shell.ClassViewNavigationInfoTypesThe types of nodes to check. For more information about the types of nodes that are available, see ClassViewNavigationInfoTypes.
allowMultiples
Type: System.Booleantrue to indicate that multiple infoType nodes are allowed; otherwise, false.
allowOtherTypes
Type: System.Booleantrue 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
- 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.