ExtendedProtectionPolicyTypeConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) Método
Definição
Converter o objeto no tipo especificado.Convert the object to the specified type.
public:
override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value, Type ^ destinationType);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (context As ITypeDescriptorContext, culture As CultureInfo, value As Object, destinationType As Type) As Object
Parâmetros
- context
- ITypeDescriptorContext
Um ITypeDescriptorContext que fornece um contexto de formato.An ITypeDescriptorContext that provides a format context.
- culture
- CultureInfo
Um objeto CultureInfo.A CultureInfo object. Se null for passado, a cultura atual será assumida.If null is passed, the current culture is assumed.
- value
- Object
O Object a ser convertido.The Object to convert. Isso deve ser um objeto ExtendedProtectionPolicy.This should be a ExtendedProtectionPolicy object.
- destinationType
- Type
O Type para o qual converter o parâmetro de valor.The Type to convert the value parameter to.
Retornos
Um Object que representa o parâmetro value convertido.An Object that represents the converted value parameter.
- Atributos
Exceções
O parâmetro destinationType é null.The destinationType parameter is null.
A conversão não pôde ser executada.The conversion could not be performed.
Comentários
Use o context parâmetro para extrair informações adicionais sobre o ambiente do qual esse conversor é invocado.Use the context parameter to extract additional information about the environment from which this converter is invoked. Esse parâmetro pode ser null , portanto, sempre verifique.This parameter can be null, so always check it. Além disso, as propriedades no context objeto podem retornar null .Also, properties on the context object can return null.