Метод LocalizableEnumConverter.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
Параметры
- context
Тип: System.ComponentModel.ITypeDescriptorContext
An ITypeDescriptorContext object that provides the context information.
- culture
Тип: System.Globalization.CultureInfo
A CultureInfo object to use as the current culture.
- value
Тип: System.Object
The Object to convert.
Возвращаемое значение
Тип: 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