méthode System::StaticCast_noexcept

System::StaticCast_noexcept(const TFrom&) method

Effectue un cast statique sur les objets Exception.

template<typename TTo,typename TFrom> std::enable_if<IsExceptionWrapper<TFrom>::value &&IsExceptionWrapper<TTo>::value &&(std::is_convertible<TTo, TFrom>::value||std::is_base_of<TTo, TFrom>::value), TTo>::type System::StaticCast_noexcept(const TFrom &obj)
ParamètreDescription
TToType Exception cible.
TFromType Exception source.
ParamètreTypeDescription
objconst TFrom&Pointeur source.

ReturnValue

Résultat du cast si le cast est autorisé, sinon nullptr.

Deprecated

Conservé pour la compatibilité ascendante. Utilisez AsCast à la place.

Voir aussi

System::StaticCast_noexcept(SmartPtr<TFrom> const&) method

Effectue un cast statique sur les objets SmartPtr.

template<typename TTo,typename TFrom> std::enable_if<!IsExceptionWrapper<TTo>::value, typenameCastResult<TTo>::type>::type System::StaticCast_noexcept(SmartPtr<TFrom> const &obj)
ParamètreDescription
TToType du pointeur cible.
TFromType du pointeur source.
ParamètreTypeDescription
objSmartPtr<TFrom> const&Pointeur source.

ReturnValue

Résultat du cast si le cast est autorisé, sinon nullptr.

Deprecated

Conservé pour la compatibilité ascendante. Utilisez AsCast à la place.

Voir aussi

System::StaticCast_noexcept(SmartPtr<TFrom>) method

Effectue un cast statique sur les Objets vers des objets Exception.

template<typename TTo,typename TFrom> std::enable_if<std::is_same<System::Object, TFrom>::value &&IsExceptionWrapper<TTo>::value, TTo>::type System::StaticCast_noexcept(SmartPtr<TFrom> obj) noexcept
ParamètreDescription
TToType Exception cible.
TFromtype Object.
ParamètreTypeDescription
objSmartPtr<TFrom>Pointeur source.

ReturnValue

Résultat du cast si le cast est autorisé, sinon nullptr.

Deprecated

Conservé pour la compatibilité ascendante. Utilisez AsCast à la place.

Voir aussi

System::StaticCast_noexcept(WeakPtr<TFrom> const&) method

Effectue un cast statique sur les objets WeakPtr.

template<typename TTo,typename TFrom> CastResult<TTo>::type System::StaticCast_noexcept(WeakPtr<TFrom> const &obj)
ParamètreDescription
TToType du pointeur cible.
TFromType du pointeur source.
ParamètreTypeDescription
objWeakPtr<TFrom> const&Pointeur source.

ReturnValue

Résultat du cast si le cast est autorisé, sinon nullptr.

Deprecated

Conservé pour la compatibilité ascendante. Utilisez AsCast à la place.

Voir aussi