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>]
override ConvertTo : 
        typeDescriptorContext:ITypeDescriptorContext *
        cultureInfo:CultureInfo *
        value:Object *
        destinationType:Type -> Object

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: