Bearbeiten

Freigeben über


DataColumnSelectionConverter.ConvertFrom Method

Definition

Converts the specified object to the type of the associated control property.

public:
 override System::Object ^ ConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value);
public override object ConvertFrom (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value);
override this.ConvertFrom : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj -> obj
Public Overrides Function ConvertFrom (context As ITypeDescriptorContext, culture As CultureInfo, value As Object) As Object

Parameters

context
ITypeDescriptorContext

An ITypeDescriptorContext implementation that can be used to gain additional context information.

culture
CultureInfo

The CultureInfo object that can be used to support localization features.

value
Object

The object to convert.

Returns

An Object instance that represents the converted object.

Exceptions

The conversion could not be performed.

Remarks

If value is a string, then the string representation of value is returned. If value is null, an empty string ("") is returned. For all other values, a NotSupportedException exception is thrown.

Call the CanConvertFrom method to determine whether the ConvertFrom method supports converting the source type.

Applies to