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.

RequestCachePolicyConverter::ConvertTo Method (ITypeDescriptorContext^, CultureInfo^, Object^, Type^)

 

Converts this object to the specified type.

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

public:
[SecurityCriticalAttribute]
virtual Object^ ConvertTo(
	ITypeDescriptorContext^ typeDescriptorContext,
	CultureInfo^ cultureInfo,
	Object^ value,
	Type^ destinationType
) override

Parameters

typeDescriptorContext
Type: System.ComponentModel::ITypeDescriptorContext^

The format context.

cultureInfo
Type: System.Globalization::CultureInfo^

The culture to use for the conversion.

value
Type: System::Object^

The policy to convert.

destinationType
Type: System::Type^

The type to convert to.

Return Value

Type: System::Object^

The object that is constructed from the conversion.

Exception Condition
ArgumentNullException

destinationType is null.

ConvertTo is introduced in the .NET Framework version 3.5. For more information, see .NET Framework Versions and Dependencies.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft