共用方式為


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

這個轉換成其他型別。 目前支援字串和任何內嵌的資料型別。

命名空間:  Microsoft.VisualStudio.GraphModel
組件:  Microsoft.VisualStudio.GraphModel (在 Microsoft.VisualStudio.GraphModel.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
    要轉換成的型別。

傳回值

型別:System.Object
轉換的值。

.NET Framework 安全性

請參閱

參考

GraphNodeIdConverter 類別

ConvertTo 多載

Microsoft.VisualStudio.GraphModel 命名空間