Share via


GraphNodeIdConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

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

Syntax

'Declaration
Public Overrides Function CanConvertFrom ( _
    context As ITypeDescriptorContext, _
    sourceType As Type _
) As Boolean
public override bool CanConvertFrom(
    ITypeDescriptorContext context,
    Type sourceType
)
public:
virtual bool CanConvertFrom(
    ITypeDescriptorContext^ context, 
    Type^ sourceType
) override
abstract CanConvertFrom : 
        context:ITypeDescriptorContext * 
        sourceType:Type -> bool  
override CanConvertFrom : 
        context:ITypeDescriptorContext * 
        sourceType:Type -> bool
public override function CanConvertFrom(
    context : ITypeDescriptorContext, 
    sourceType : Type
) : boolean

Parameters

  • sourceType
    Type: System.Type

    The type to convert from.

Return Value

Type: System.Boolean
True if the GraphNodeId can be converted from the source type.

.NET Framework Security

See Also

Reference

GraphNodeIdConverter Class

CanConvertFrom Overload

Microsoft.VisualStudio.GraphModel Namespace