共用方式為


GenericTypeArgumentConverter.Convert 方法

定義

在指定之泛型型別的指定之參數位置,傳回型別引數。

public:
 virtual System::Object ^ Convert(System::Object ^ value, Type ^ targetType, System::Object ^ parameter, System::Globalization::CultureInfo ^ culture);
public object Convert (object value, Type targetType, object parameter, System.Globalization.CultureInfo culture);
abstract member Convert : obj * Type * obj * System.Globalization.CultureInfo -> obj
override this.Convert : obj * Type * obj * System.Globalization.CultureInfo -> obj
Public Function Convert (value As Object, targetType As Type, parameter As Object, culture As CultureInfo) As Object

參數

value
Object

從其中取得型別引數之繫結來源內的泛型型別。

targetType
Type

繫結目標屬性的型別。

parameter
Object

要取得型別引數從零開始的位置。 這會以引數出現在泛型型別之型別引數清單中的順序,對應到該引數的位置。

culture
CultureInfo

文化特性資訊。

傳回

Object

型別引數。

實作

適用於