ActivityBindTypeConverter.ConvertTo 方法

定義

使用指定的內容和文化特性,將指定的 ActivityBind 物件轉換為指定型別。

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value, Type ^ destinationType);
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (context As ITypeDescriptorContext, culture As CultureInfo, value As Object, destinationType As Type) As Object

參數

context
ITypeDescriptorContext

提供格式內容的 ITypeDescriptorContext

culture
CultureInfo

CultureInfo 所要轉換成為的 ActivityBind

value
Object

要進行轉換的 ActivityBind

destinationType
Type

要將 Type 轉換成的目的 ActivityBind

傳回

轉換的物件。

備註

ConvertTo 會將 ActivityBind 轉換成字串。

context 可以用來擷取環境的其他資訊,而這個轉換子就是從這個環境叫用的。 這可以是 null 參考 (在 Visual Basic 中為 Nothing),所以一定要檢查。 此外,context 物件的屬性可能會傳回 null 參考 (Nothing)。

適用於