Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 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.

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:
© 2017 Microsoft