다음을 통해 공유


UserContextTypeConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)

This method is not used by the Visual Studio SDK. Indicates whether this converter can convert an object in the given source type to a Help context by using the specified format context.

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

Syntax

‘선언
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 this converter can perform the conversion; otherwise, false.

Remarks

This converter can only convert a Help context to and from a string.

.NET Framework Security

See Also

Reference

UserContextTypeConverter Class

CanConvertFrom Overload

Microsoft.VisualStudio.Modeling.Design Namespace