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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)
Syntax
'Declaration
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
data
Type: IDataObjectThe element to verify.
nodeTypes
Type: Microsoft.VisualStudio.Modeling.Shell.ClassViewNavigationInfoTypesThe types of nodes to verify. For more information about the types of nodes that are available, see ClassViewNavigationInfoTypes.
allowMultiples
Type: Booleantrue to indicate that multiple infoType nodes are allowed; otherwise, false.
allowOtherTypes
Type: Booleantrue to allow other types of nodes; otherwise, false.
Return Value
Type: 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.