System.Web.UI.WebControls.StringArrayConverter.CanConvertFrom Method

Determines whether the System.Web.UI.WebControls.StringArrayConverter can convert the specified source type to an array of strings.

Syntax

public override bool CanConvertFrom (System.ComponentModel.ITypeDescriptorContext context, Type sourceType)

Parameters

context
An System.ComponentModel.ITypeDescriptorContext object that provides a format context that can be used to extract additional information about the environment from which this converter is invoked. This parameter or properties of this parameter can be null.
sourceType
The Type to convert.

Returns

true if the converter can perform the operation; otherwise, false.

Remarks

The StringArrayConverter.CanConvertFrom(System.ComponentModel.ITypeDescriptorContext, Type) method determines whether the System.Web.UI.WebControls.StringArrayConverter can convert the object specified by sourceType to an array of strings. Use this method prior to calling the StringArrayConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object) method to perform the conversion.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0