Freigeben über


LocalizableEnumConverter.ConvertTo-Methode (ITypeDescriptorContext, CultureInfo, Object, Type)

Converts the given value object to the specified type. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur.

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Public Overrides Function ConvertTo ( _
    context As ITypeDescriptorContext, _
    culture As CultureInfo, _
    value As Object, _
    destinationType As Type _
) As Object
'Usage
Dim instance As LocalizableEnumConverter 
Dim context As ITypeDescriptorContext 
Dim culture As CultureInfo 
Dim value As Object 
Dim destinationType As Type 
Dim returnValue As Object 

returnValue = instance.ConvertTo(context, _
    culture, value, destinationType)
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

Parameter

  • destinationType
    Typ: System.Type
    The Type to convert the value parameter to.

Rückgabewert

Typ: System.Object
An Object that represents the converted value.

Hinweise

This method is designed to convert Enum to String or String to String. If any other combination of types is specified, the arguments are passed on to the TypeConverter.ConvertTo method.

Siehe auch

Verweis

LocalizableEnumConverter Klasse

ConvertTo-Überladung

Microsoft.SqlServer.Management.Sdk.Sfc-Namespace