ValueSerializer.ConvertToString(Object, IValueSerializerContext) ValueSerializer.ConvertToString(Object, IValueSerializerContext) ValueSerializer.ConvertToString(Object, IValueSerializerContext) ValueSerializer.ConvertToString(Object, IValueSerializerContext) Method

Definition

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

public:
 virtual System::String ^ ConvertToString(System::Object ^ value, System::Windows::Markup::IValueSerializerContext ^ context);
public virtual string ConvertToString (object value, System.Windows.Markup.IValueSerializerContext context);
abstract member ConvertToString : obj * System.Windows.Markup.IValueSerializerContext -> string
override this.ConvertToString : obj * System.Windows.Markup.IValueSerializerContext -> string
Public Overridable Function ConvertToString (value As Object, context As IValueSerializerContext) As String

Parameters

value
Object Object Object Object

The object to convert into a string.

context
IValueSerializerContext IValueSerializerContext IValueSerializerContext IValueSerializerContext

Context information that is used for conversion.

Returns

A string representation of the specified object.

Exceptions

Remarks

The base implementation always throws an exception.

Notes to Inheritors

Avoid throwing exceptions from implementations. See ValueSerializer.

Applies to