GraphNodeIdConverter.CanConvertFrom, méthode (ITypeDescriptorContext, Type)

Détermine si le GraphNodeId peut être converti du type donné.

Espace de noms :  Microsoft.VisualStudio.GraphModel
Assembly :  Microsoft.VisualStudio.GraphModel (dans Microsoft.VisualStudio.GraphModel.dll)

Syntaxe

'Déclaration
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

Paramètres

  • sourceType
    Type : System.Type
    Type d'origine de la conversion.

Valeur de retour

Type : System.Boolean
True si le GraphNodeId peut être converti du type de source.

Sécurité .NET Framework

Voir aussi

Référence

GraphNodeIdConverter Classe

CanConvertFrom, surcharge

Microsoft.VisualStudio.GraphModel, espace de noms