ClassViewNavigationInfo.IsDataPresent 方法 (IDataObject, ClassViewNavigationInfoTypes, Boolean, Boolean)

验证元素是否包含项目名称、引用名称、全名、和节点类型。 并验证元素是否属于一个指定格式。

命名空间:  Microsoft.VisualStudio.Modeling.Shell
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll 中)

语法

声明
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
)

参数

  • allowMultiples
    类型:System.Boolean
    如果指示允许多个 infoType 节点,则为 true;否则为 false。
  • allowOtherTypes
    类型:System.Boolean
    允许节点的其他类型,则为 true;否则为 false。

返回值

类型:System.Boolean
如果元素为指定格式,则为 true,否则为 false。

备注

如果 allowOtherTypes 参数为 true,则其他节点类型返回 GetData,因此,调用方忽略它们。

.NET Framework 安全性

请参阅

参考

ClassViewNavigationInfo 类

IsDataPresent 重载

Microsoft.VisualStudio.Modeling.Shell 命名空间