Share via


GraphNodeIdConverter.CanConvertTo Method (ITypeDescriptorContext, Type)

Determines whether the GraphNodeId can be converted to the given type.

Namespace:  Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

Syntax

'Declaration
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

Parameters

  • context
    Type: ITypeDescriptorContext

    The type descriptor context.

  • destinationType
    Type: Type

    The type to convert to.

Return Value

Type: Boolean
True if this converter can convert the GraphNodeId into the destination type, false otherwise.

.NET Framework Security

See Also

Reference

GraphNodeIdConverter Class

CanConvertTo Overload

Microsoft.VisualStudio.GraphModel Namespace