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)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Converts this object to the specified type.

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

[SecurityCriticalAttribute]
public override object ConvertTo(
	ITypeDescriptorContext typeDescriptorContext,
	CultureInfo cultureInfo,
	object value,
	Type destinationType
)

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