LocalizableEnumConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) LocalizableEnumConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) LocalizableEnumConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) Method

Definition

Converts the specified value to the Enum type.

Converts the specified value to the Enum type. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

public:
 override System::Object ^ ConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value);
public override object ConvertFrom (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value);
Public Overrides Function ConvertFrom (context As ITypeDescriptorContext, culture As CultureInfo, value As Object) As Object
Parameters
context
ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext

An ITypeDescriptorContext object that provides the context information.

culture
CultureInfo CultureInfo CultureInfo

A CultureInfo object to use as the current culture.

value
Object Object Object

The Object to convert.

Returns

An Object that represents the converted value.

Remarks

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

Applies to