طريقة System::ComponentModel::TypeConverter::ConvertTo

TypeConverter::ConvertTo(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&, const System::TypeInfo&) method

يحول الكائن إلى نوع محدد.

virtual System::SharedPtr<System::Object> System::ComponentModel::TypeConverter::ConvertTo(const System::SharedPtr<ITypeDescriptorContext> &context, const System::SharedPtr<System::Globalization::CultureInfo> &culture, const System::SharedPtr<System::Object> &value, const System::TypeInfo &destinationType)
معاملنوعالوصف
contextconst System::SharedPtr<ITypeDescriptorContext>&Object معلومات سياق التحويل.
الثقافةconst System::SharedPtr<System::Globalization::CultureInfo>&الثقافة المستخدمة عند تحويل الكائنات.
valueconst System::SharedPtr<System::Object>&Object للتحويل.
destinationTypeconst System::TypeInfo&نوع للتحويل إليه.

ReturnValue

الكائن المحول.

انظر أيضًا

TypeConverter::ConvertTo(const System::SharedPtr<System::Object>&, const System::TypeInfo&) method

يحول الكائن إلى نوع محدد.

System::SharedPtr<System::Object> System::ComponentModel::TypeConverter::ConvertTo(const System::SharedPtr<System::Object> &value, const System::TypeInfo &destinationType)
معاملنوعالوصف
valueconst System::SharedPtr<System::Object>&Object للتحويل.
destinationTypeconst System::TypeInfo&نوع للتحويل إليه.

ReturnValue

الكائن المحول.

انظر أيضًا