CanConvertFrom Method (ITypeDescriptorContext, Type)
**[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]**This member overrides TypeConverter. . :: . .CanConvertFrom(ITypeDescriptorContext, Type).
Namespace: System.Dataflow
Assembly: System.Dataflow (in System.Dataflow.dll)
Syntax
'Declaration
PublicOverridesFunctionCanConvertFrom ( _
contextAsITypeDescriptorContext, _
sourceTypeAsType _
) AsBoolean
'Usage
DiminstanceAsByteArrayConverterDimcontextAsITypeDescriptorContextDimsourceTypeAsTypeDimreturnValueAsBooleanreturnValue = instance.CanConvertFrom(context, _
sourceType)
publicoverrideboolCanConvertFrom(
ITypeDescriptorContextcontext,
TypesourceType
)
public:
virtualboolCanConvertFrom(
ITypeDescriptorContext^ context,
Type^ sourceType
) override
publicoverridefunctionCanConvertFrom(
context : ITypeDescriptorContext,
sourceType : Type
) : boolean
Parameters
- context
Type: System.ComponentModel. . :: . .ITypeDescriptorContext
- sourceType
Type: System. . :: . .Type
Return Value
Type: System. . :: . .Boolean
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see https://msdn.microsoft.com/en-us/library/8skskf63(v=vs.85).