CacheModeConverter::ConvertFrom Method (ITypeDescriptorContext^, CultureInfo^, Object^)

.NET Framework (current version)
 

Converts a specified object to a CacheMode.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public:
virtual Object^ ConvertFrom(
	ITypeDescriptorContext^ context,
	CultureInfo^ culture,
	Object^ value
) override

Parameters

context
Type: System.ComponentModel::ITypeDescriptorContext^

An ITypeDescriptorContext that provides a format context.

culture
Type: System.Globalization::CultureInfo^

A CultureInfo that holds information about a specific culture.

value
Type: System::Object^

The Object to be converted.

Return Value

Type: System::Object^

The CacheMode that is created by converting value; otherwise, an exception is raised.

Exception Condition
NotSupportedException

value is null or not a type that can be converted to CacheMode.

.NET Framework
Available since 4.0
Return to top
Show: