StringCollectionConverter.ConvertTo 方法 (ITypeDescriptorContext, CultureInfo, Object, Type)

将类型 StringCollection 的对象转换为 StringInstanceDescriptor

命名空间:  Microsoft.Windows.Controls.Ribbon
程序集:  RibbonControlsLibrary(在 RibbonControlsLibrary.dll 中)

语法

声明
Public Overrides Function ConvertTo ( _
    context As ITypeDescriptorContext, _
    culture As CultureInfo, _
    value As Object, _
    destinationType As Type _
) As Object
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

参数

  • destinationType
    类型:System.Type
    value 所要转换成的类型。

返回值

类型:System.Object
转换后的值。

异常

异常 条件
ArgumentNullException

value 为 nullnull 引用(在 Visual Basic 中为 Nothing)。

- 或 -

destinationType 为 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参见

参考

StringCollectionConverter 类

ConvertTo 重载

Microsoft.Windows.Controls.Ribbon 命名空间