UserContextTypeConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)

This member overrides TypeConverter.CanConvertFrom(ITypeDescriptorContext, Type).

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'宣言
Public Overrides Function CanConvertFrom ( _
    context As ITypeDescriptorContext, _
    sourceType As Type _
) As Boolean
'使用
Dim instance As UserContextTypeConverter
Dim context As ITypeDescriptorContext
Dim sourceType As Type
Dim returnValue As Boolean

returnValue = instance.CanConvertFrom(context, _
    sourceType)
public override bool CanConvertFrom(
    ITypeDescriptorContext context,
    Type sourceType
)
public:
virtual bool CanConvertFrom(
    ITypeDescriptorContext^ context, 
    Type^ sourceType
) override
public override function CanConvertFrom(
    context : ITypeDescriptorContext, 
    sourceType : Type
) : boolean

Parameters

Return Value

Type: System.Boolean

Permissions

See Also

Reference

UserContextTypeConverter Class

UserContextTypeConverter Members

CanConvertFrom Overload

Microsoft.VisualStudio.Modeling.Design Namespace