ConvertTo 方法 (ITypeDescriptorContext, CultureInfo, Object, Type)
此 API 支援 .NET Framework 結構,但並不是針對直接從程式碼使用而設計。
此成員會覆寫 EnumConverter. . :: . .ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)。
命名空間: Microsoft.SqlServer.Dts.Design
組件: Microsoft.SqlServer.Dts.Design (在 Microsoft.SqlServer.Dts.Design.dll 中)
語法
'宣告
Public Overrides Function ConvertTo ( _
context As ITypeDescriptorContext, _
culture As CultureInfo, _
value As Object, _
destinationType As Type _
) As Object
'用途
Dim instance As LocalizedEnumConverter
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
參數
- culture
型別:System.Globalization. . :: . .CultureInfo
- value
型別:System. . :: . .Object
- destinationType
型別:System. . :: . .Type