System::DynamicCast_noexcept method

System::DynamicCast_noexcept(const TFrom&) method

Oude verouderde casts. Wordt verwijderd in toekomstige versies.

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::DynamicCast_noexcept(const TFrom &obj) noexcept
ParameterBeschrijving
TToDoel Exception type.
TFromBron Exception type.
ParameterTypeBeschrijving
objconst TFrom&Bron‑pointer.

ReturnValue

Castresultaat als cast is toegestaan, anders nullptr.

Opmerkingen

Voert een dynamische cast uit op Exception objecten. ## Verouderd Behoudt voor achterwaartse compatibiliteit. Gebruik AsCast in plaats daarvan.

Zie ook

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

Voert een dynamische cast uit op SmartPtr objecten.

template<typename TTo,typename TFrom> std::enable_if<!IsExceptionWrapper<TTo>::value, typenameCastResult<TTo>::type>::type System::DynamicCast_noexcept(SmartPtr<TFrom> const &obj) noexcept
ParameterBeschrijving
TToDoel‑pointee type.
TFromBron‑pointee type.
ParameterTypeBeschrijving
objSmartPtr<TFrom> const&Bron‑pointer.

ReturnValue

Castresultaat als cast is toegestaan, anders nullptr.

Deprecated

Behoudt voor achterwaartse compatibiliteit. Gebruik AsCast in plaats daarvan.

Zie ook

System::DynamicCast_noexcept(SmartPtr<TFrom>) method

Voert een dynamische cast uit op objecten naar Exception objecten.

template<typename TTo,typename TFrom> std::enable_if<std::is_same<System::Object, TFrom>::value &&IsExceptionWrapper<TTo>::value, TTo>::type System::DynamicCast_noexcept(SmartPtr<TFrom> obj) noexcept
ParameterBeschrijving
TToDoel Exception type.
TFromObject type.
ParameterTypeBeschrijving
objSmartPtr<TFrom>Bron‑pointer.

ReturnValue

Castresultaat als cast is toegestaan, anders nullptr.

Deprecated

Behoudt voor achterwaartse compatibiliteit. Gebruik AsCast in plaats daarvan.

Zie ook