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.
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
Available since 4.0
Show: