ValueSerializer.ConvertToString Method (Object, IValueSerializerContext)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

When overridden in a derived class, converts the specified object to a String.

Namespace:   System.Windows.Markup
Assembly:  System.Xaml (in System.Xaml.dll)

public virtual string ConvertToString(
	object value,
	IValueSerializerContext context
)

Parameters

value
Type: System.Object

The object to convert into a string.

context
Type: System.Windows.Markup.IValueSerializerContext

Context information that is used for conversion.

Return Value

Type: System.String

A string representation of the specified object.

Exception Condition
NotSupportedException

value cannot be converted.

The base implementation always throws an exception.

Notes to Inheritors:

Avoid throwing exceptions from implementations. See Remarks in ValueSerializer.

.NET Framework
Available since 3.0
Return to top
Show: