طريقة System::AsCast
System::AsCast(const Source&) method
تحول النوع المصدر إلى نوع النتيجة باستخدام عملية التحويل ‘as’. تُستخدم عندما يكون التحويل الشبه بنائي بسيط مطلوبًا.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::Static, Result> System::AsCast(const Source &value)
| Parameter | الوصف |
|---|---|
| المصدر | نوع المصدر. |
| Result | نوع النتيجة. |
| Parameter | Type | الوصف |
|---|---|---|
| value | const Source& | Object للتحويل. |
ReturnValue
نتيجة التحويل.
انظر أيضًا
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
يحوِّل نوع المصدر إلى نوع النتيجة باستخدام تحويل العامل ‘as’. يُستخدم عندما يكون نوع المصدر والنتيجة متماثلين.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::None, Result> System::AsCast(const Source &value)
| Parameter | الوصف |
|---|---|
| المصدر | نوع المصدر. |
| Result | نوع النتيجة. |
| Parameter | Type | الوصف |
|---|---|---|
| value | const Source& | Object للتحويل. |
ReturnValue
نتيجة التحويل.
انظر أيضًا
- Enum Base64FormattingOptions
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
يحوِّل نوع المصدر إلى نوع النتيجة باستخدام تحويل العامل ‘as’. يُستخدم لأغلفة الاستثناءات.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::Exception, Result> System::AsCast(const Source &value)
| Parameter | الوصف |
|---|---|
| المصدر | نوع المصدر. |
| Result | نوع النتيجة. |
| Parameter | Type | الوصف |
|---|---|---|
| value | const Source& | Object للتحويل. |
ReturnValue
نتيجة التحويل. تُرجع nullptr إذا لم يتوفر تحويل.
انظر أيضًا
- Typedef Exception
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
يحوِّل نوع المصدر إلى نوع النتيجة باستخدام تحويل العامل ‘as’. يُستخدم لتحويل الكائن إلى استثناء.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::ObjectToException, Result> System::AsCast(const Source &value)
| Parameter | الوصف |
|---|---|
| المصدر | نوع المصدر. |
| Result | نوع النتيجة. |
| Parameter | Type | الوصف |
|---|---|---|
| value | const Source& | Object للتحويل. |
ReturnValue
نتيجة التحويل. تُرجع nullptr إذا لم يتوفر تحويل.
انظر أيضًا
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
يحوِّل نوع المصدر إلى نوع النتيجة باستخدام تحويل العامل ‘as’. يُستخدم عندما يكون كل من المصدر والنتيجة مؤشرات ذكية.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::Pointer, typename CastResult<Result>::type> System::AsCast(const Source &value)
| Parameter | الوصف |
|---|---|
| المصدر | نوع المصدر. |
| Result | نوع النتيجة. |
| Parameter | Type | الوصف |
|---|---|---|
| value | const Source& | Object للتحويل. |
ReturnValue
نتيجة التحويل. تُرجع nullptr إذا لم يتوفر تحويل.
انظر أيضًا
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
يحوِّل نوع المصدر إلى نوع النتيجة باستخدام تحويل العامل ‘as’. يُستخدم عندما يكون كل من المصدر والنتيجة مؤشرات ذكية (مع SmartPtr<…> صريحة في نوع النتيجة).
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::PointerToPointer, Result> System::AsCast(const Source &value)
| Parameter | الوصف |
|---|---|
| المصدر | نوع المصدر. |
| Result | نوع النتيجة. |
| Parameter | Type | الوصف |
|---|---|---|
| value | const Source& | Object للتحويل. |
ReturnValue
نتيجة التحويل. تُرجع nullptr إذا لم يتوفر تحويل.
انظر أيضًا
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
يحوِّل نوع المصدر إلى نوع النتيجة باستخدام تحويل العامل ‘as’. يُستخدم لإلغاء تغليف الكائن إلى قابل للفراغ.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::UnboxingToNullable, Result> System::AsCast(const Source &value)
| Parameter | الوصف |
|---|---|
| المصدر | نوع المصدر. |
| Result | نوع النتيجة. |
| Parameter | Type | الوصف |
|---|---|---|
| value | const Source& | Object للتحويل. |
ReturnValue
نتيجة التحويل. تُرجع قابل للفراغ فارغ إذا لم يتوفر تحويل.
انظر أيضًا
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
يحوِّل نوع المصدر إلى نوع النتيجة باستخدام تحويل العامل ‘as’. إلغاء تغليف غير صالح إلى نوع غير كائن.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::InterfaceUnboxingToNullable, Result> System::AsCast(const Source &value)
| Parameter | الوصف |
|---|---|
| المصدر | نوع المصدر. |
| Result | نوع النتيجة. |
| Parameter | Type | الوصف |
|---|---|---|
| value | const Source& | Object للتحويل. |
ReturnValue
دائمًا تُرجع null.
انظر أيضًا
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
إلغاء تغليف غير صالح إلى نوع غير كائن.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::InvalidUnboxing, Result> System::AsCast(const Source &value)
| Parameter | الوصف |
|---|---|
| المصدر | نوع المصدر. |
| Result | نوع النتيجة. |
| Parameter | Type | الوصف |
|---|---|---|
| value | const Source& | Object للتحويل. |
ReturnValue
دائمًا تُرجع null.
انظر أيضًا
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
يحوِّل نوع المصدر إلى نوع النتيجة باستخدام تحويل العامل ‘as’. يُستخدم لتغليف كائن قابل للفراغ.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::NullableBoxing, Result> System::AsCast(const Source &value)
| Parameter | الوصف |
|---|---|
| المصدر | نوع المصدر. |
| Result | نوع النتيجة. |
| Parameter | Type | الوصف |
|---|---|---|
| value | const Source& | Object للتحويل. |
ReturnValue
نتيجة التحويل.
انظر أيضًا
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
يحوِّل نوع المصدر إلى نوع النتيجة باستخدام تحويل العامل ‘as’. يُستخدم لتغليف كائن شائع.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::InterfaceBoxing, typename CastResult<Result>::type> System::AsCast(const Source &value)
| Parameter | الوصف |
|---|---|
| المصدر | نوع المصدر. |
| Result | نوع النتيجة. |
| Parameter | Type | الوصف |
|---|---|---|
| value | const Source& | Object للتحويل. |
ReturnValue
نتيجة التحويل.
انظر أيضًا
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
يحوِّل نوع المصدر إلى نوع النتيجة باستخدام تحويل العامل ‘as’. يُستخدم لتغليف كائن شائع.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::Boxing, typename CastResult<Result>::type> System::AsCast(const Source &value)
| Parameter | الوصف |
|---|---|
| المصدر | نوع المصدر. |
| Result | نوع النتيجة. |
| Parameter | Type | الوصف |
|---|---|---|
| value | const Source& | Object للتحويل. |
ReturnValue
نتيجة التحويل.
انظر أيضًا
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
يحوِّل نوع المصدر إلى نوع النتيجة باستخدام تحويل العامل ‘as’. يُستخدم لإلغاء تغليف السلسلة.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::UnboxingToString, Result> System::AsCast(const Source &value)
| Parameter | الوصف |
|---|---|
| المصدر | نوع المصدر. |
| Result | نوع النتيجة. |
| Parameter | Type | الوصف |
|---|---|---|
| value | const Source& | Object للتحويل. |
ReturnValue
نتيجة التحويل.
انظر أيضًا
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
يحوِّل نوع المصدر إلى نوع النتيجة باستخدام تحويل العامل ‘as’. يُستخدم لتحويل nullptr.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::Null, typename CastResult<Result>::type> System::AsCast(const Source &value)
| Parameter | الوصف |
|---|---|
| المصدر | نوع المصدر. |
| Result | نوع النتيجة. |
| Parameter | Type | الوصف |
|---|---|---|
| value | const Source& | Object للتحويل. |
ReturnValue
نتيجة التحويل.
انظر أيضًا
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
يحوِّل نوع المصدر إلى نوع النتيجة باستخدام تحويل العامل ‘as’. يُستخدم للتحويل بين المصفوفات.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::Array, typename CastResult<Result>::type> System::AsCast(const Source &value)
| Parameter | الوصف |
|---|---|
| المصدر | نوع المصدر. |
| Result | نوع النتيجة. |
| Parameter | Type | الوصف |
|---|---|---|
| value | const Source& | Object للتحويل. |
ReturnValue
نتيجة التحويل. تُرجع nullptr إذا لم يتوفر تحويل لأي عنصر في المصفوفة.
انظر أيضًا
- Namespace System
- Library Aspose.Page for C++