ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)
Collapse the table of content
Expand the table of content

RequestCachePolicyConverter.ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)

.NET Framework (current version)
 

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