GraphNodeIdConverter.CanConvertTo 方法 (ITypeDescriptorContext, Type)

确定 GraphNodeId 是否可以转换为给定类型。

命名空间:  Microsoft.VisualStudio.GraphModel
程序集:  Microsoft.VisualStudio.GraphModel(在 Microsoft.VisualStudio.GraphModel.dll 中)

语法

声明
Public Overrides Function CanConvertTo ( _
    context As ITypeDescriptorContext, _
    destinationType As Type _
) As Boolean
public override bool CanConvertTo(
    ITypeDescriptorContext context,
    Type destinationType
)
public:
virtual bool CanConvertTo(
    ITypeDescriptorContext^ context, 
    Type^ destinationType
) override
abstract CanConvertTo : 
        context:ITypeDescriptorContext * 
        destinationType:Type -> bool  
override CanConvertTo : 
        context:ITypeDescriptorContext * 
        destinationType:Type -> bool
public override function CanConvertTo(
    context : ITypeDescriptorContext, 
    destinationType : Type
) : boolean

参数

  • context
    类型:ITypeDescriptorContext

    类型描述符上下文。

  • destinationType
    类型:Type

    要转换到的类型。

返回值

类型:Boolean
则为 true,则此转换器可以将 GraphNodeId 为目标类型,错误否则为。

.NET Framework 安全性

请参阅

参考

GraphNodeIdConverter 类

CanConvertTo 重载

Microsoft.VisualStudio.GraphModel 命名空间