This documentation is archived and is not being maintained.

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

Convert the object to the specified type

Namespace:  System.Security.Authentication.ExtendedProtection
Assembly:  System (in System.dll)

public override Object ConvertTo(
	ITypeDescriptorContext context,
	CultureInfo culture,
	Object value,
	Type destinationType


Type: System.ComponentModel.ITypeDescriptorContext
An System.ComponentModel.ITypeDescriptorContext that provides a format context.
Type: System.Globalization.CultureInfo
A System.Globalization.CultureInfo object. If null is passed, the current culture is assumed.
Type: System.Object
The Object to convert. This should be a System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy object.
Type: System.Type
The Type to convert the value parameter to.

Return Value

Type: System.Object
An Object that represents the converted value parameter.


The destinationType parameter is null.


The conversion could not be performed.

Use the context parameter to extract additional information about the environment from which this converter is invoked. This parameter can be null, so always check it. Also, properties on the context object can return null.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.