This documentation is archived and is not being maintained.
StringArrayConverter::CanConvertFrom Method (ITypeDescriptorContext, Type)
Visual Studio 2010
Determines whether the StringArrayConverter can convert the specified source type to an array of strings.
Assembly: System.Web (in System.Web.dll)
public: virtual bool CanConvertFrom( ITypeDescriptorContext^ context, Type^ sourceType ) override
Parameters
- context
- Type: System.ComponentModel::ITypeDescriptorContext
An 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 nullptr.
- sourceType
- Type: System::Type
The Type to convert.
The CanConvertFrom method determines whether the StringArrayConverter can convert the object specified by sourceType to an array of strings. Use this method prior to calling the ConvertFrom method to perform the conversion.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: