다음을 통해 공유


ConvertFrom 메서드 (ITypeDescriptorContext, CultureInfo, Object)

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

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

구문

‘선언
Public Overrides Function ConvertFrom ( _
    context As ITypeDescriptorContext, _
    culture As CultureInfo, _
    value As Object _
) As Object
‘사용 방법
Dim instance As LocalizableEnumConverter
Dim context As ITypeDescriptorContext
Dim culture As CultureInfo
Dim value As Object
Dim returnValue As Object

returnValue = instance.ConvertFrom(context, _
    culture, value)
public override Object ConvertFrom(
    ITypeDescriptorContext context,
    CultureInfo culture,
    Object value
)
public:
virtual Object^ ConvertFrom(
    ITypeDescriptorContext^ context, 
    CultureInfo^ culture, 
    Object^ value
) override
abstract ConvertFrom : 
        context:ITypeDescriptorContext * 
        culture:CultureInfo * 
        value:Object -> Object 
override ConvertFrom : 
        context:ITypeDescriptorContext * 
        culture:CultureInfo * 
        value:Object -> Object 
public override function ConvertFrom(
    context : ITypeDescriptorContext, 
    culture : CultureInfo, 
    value : Object
) : Object

매개 변수

반환 값

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

주의

This method is designed to convert String to Enum or Enum to Enum. If value is not a String, the arguments are passed on to the TypeConverter.ConvertFrom method