Compartir a través de


StringCollectionConverter.ConvertTo (Método) (ITypeDescriptorContext, CultureInfo, Object, Type)

Convierte un objeto de tipo StringCollection en String o InstanceDescriptor.

Espacio de nombres:  Microsoft.Windows.Controls.Ribbon
Ensamblado:  RibbonControlsLibrary (en RibbonControlsLibrary.dll)

Sintaxis

'Declaración
Public Overrides Function ConvertTo ( _
    context As ITypeDescriptorContext, _
    culture As CultureInfo, _
    value As Object, _
    destinationType As Type _
) As Object
public override Object ConvertTo(
    ITypeDescriptorContext context,
    CultureInfo culture,
    Object value,
    Type destinationType
)
public:
virtual Object^ ConvertTo(
    ITypeDescriptorContext^ context, 
    CultureInfo^ culture, 
    Object^ value, 
    Type^ destinationType
) override
abstract ConvertTo : 
        context:ITypeDescriptorContext * 
        culture:CultureInfo * 
        value:Object * 
        destinationType:Type -> Object 
override ConvertTo : 
        context:ITypeDescriptorContext * 
        culture:CultureInfo * 
        value:Object * 
        destinationType:Type -> Object 
public override function ConvertTo(
    context : ITypeDescriptorContext, 
    culture : CultureInfo, 
    value : Object, 
    destinationType : Type
) : Object

Parámetros

  • destinationType
    Tipo: System.Type
    Tipo en el que convertir value.

Valor devuelto

Tipo: System.Object
El valor convertido.

Excepciones

Excepción Condición
ArgumentNullException

El valor de value es nullreferencia null (Nothing en Visual Basic).

O bien

El valor de destinationType es nullreferencia null (Nothing en Visual Basic).

Seguridad de .NET Framework

Vea también

Referencia

StringCollectionConverter Clase

ConvertTo (Sobrecarga)

Microsoft.Windows.Controls.Ribbon (Espacio de nombres)