다음을 통해 공유


LocalizableEnumConverter.ConvertTo 메서드 (ITypeDescriptorContext, CultureInfo, Object, Type)

Converts the given value object to the specified type. 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다.

네임스페이스:  Microsoft.SqlServer.Management.Sdk.Sfc
어셈블리:  Microsoft.SqlServer.Management.Sdk.Sfc(Microsoft.SqlServer.Management.Sdk.Sfc.dll)

구문

‘선언
Public Overrides Function ConvertTo ( _
    context As ITypeDescriptorContext, _
    culture As CultureInfo, _
    value As Object, _
    destinationType As Type _
) As Object
‘사용 방법
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

매개 변수

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

반환 값

유형: System.Object
An Object that represents the converted value.

주의

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.

참고 항목

참조

LocalizableEnumConverter 클래스

ConvertTo 오버로드

Microsoft.SqlServer.Management.Sdk.Sfc 네임스페이스