PropertyPathConverter.ConvertFrom Method

Definition

Converts the specified value to the PropertyPath type.

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 object to convert to a PropertyPath. This is expected to be a string.

Returns

The converted PropertyPath.

Exceptions

The source was provided as null.

The source was not null, but was not of the expected String type.

Applies to