Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

WhiteSpaceTrimStringConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

Converts a String to canonical form.

Namespace:  System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

public override Object ConvertFrom(
	ITypeDescriptorContext ctx,
	CultureInfo ci,
	Object data
)

Parameters

ctx
Type: System.ComponentModel.ITypeDescriptorContext

The ITypeDescriptorContext object used for type conversions.

ci
Type: System.Globalization.CultureInfo

The CultureInfo object used during conversion.

data
Type: System.Object

The String object to convert.

Return Value

Type: System.Object
An object representing the converted value.

The system uses the ConvertFrom method when reading from a configuration file to convert a String value to its canonical form.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft