CacheModeConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

Converts a specified object to a CacheMode.

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

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

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.

ExceptionCondition
NotSupportedException

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

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft