Edit

Share via


EventSetterHandlerConverter.ConvertFrom Method

Definition

Converts the specified string to a new Delegate for the event handler.

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

Parameters

typeDescriptorContext
ITypeDescriptorContext

An ITypeDescriptorContext that provides a format context.

cultureInfo
CultureInfo

The CultureInfo to use as the current culture.

source
Object

The source string to convert.

Returns

A new Delegate that represents the referenced event handler.

Exceptions

The necessary services are not available.

-or-

Could not perform the specific conversion.

typeDescriptorContext or source is null.

Remarks

The typeDescriptorContext must provide services for IRootObjectProvider and IProvideValueTarget.

Applies to