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