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.

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

.NET Framework (current version)
 

Convert the object to the specified type

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

public:
virtual Object^ ConvertTo(
	ITypeDescriptorContext^ context,
	CultureInfo^ culture,
	Object^ value,
	Type^ destinationType
) override

Parameters

context
Type: System.ComponentModel::ITypeDescriptorContext^

An System.ComponentModel::ITypeDescriptorContext that provides a format context.

culture
Type: System.Globalization::CultureInfo^

A System.Globalization::CultureInfo object. If null is passed, the current culture is assumed.

value
Type: System::Object^

The Object to convert. This should be a System.Security.Authentication.ExtendedProtection::ExtendedProtectionPolicy object.

destinationType
Type: System::Type^

The Type to convert the value parameter to.

Return Value

Type: System::Object^

An Object that represents the converted value parameter.

Exception Condition
ArgumentNullException

The destinationType parameter is null.

NotSupportedException

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
Available since 4.0
Return to top
Show:
© 2017 Microsoft