共用方式為


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

參數

  • destinationType
    型別:System.Type
    要轉換成的型別。

傳回值

型別:System.Boolean
為 True,如果這個轉換子可以轉換 GraphNodeId 轉換為目的型別,否則為 false。

.NET Framework 安全性

請參閱

參考

GraphNodeIdConverter 類別

CanConvertTo 多載

Microsoft.VisualStudio.GraphModel 命名空間