System::StaticCast_noexcept‑metod

System::StaticCast_noexcept(const TFrom&) method

Utför statisk cast på Exception-objekt.

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)
ParameterBeskrivning
TToMåltyp för Exception-typen.
TFromKälltyp för Exception-typen.
ParameterTypeBeskrivning
objconst TFrom&Källpekare.

ReturnValue

Cast‑resultat om cast är tillåten eller nullptr annars.

Deprecated

Lämnad för bakåtkompatibilitet. Använd AsCast istället.

Se även

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

Utför statisk cast på SmartPtr-objekt.

template<typename TTo,typename TFrom> std::enable_if<!IsExceptionWrapper<TTo>::value, typenameCastResult<TTo>::type>::type System::StaticCast_noexcept(SmartPtr<TFrom> const &obj)
ParameterBeskrivning
TToMålpointerns typ.
TFromKällpointerns typ.
ParameterTypeBeskrivning
objSmartPtr<TFrom> const&Källpekare.

ReturnValue

Cast‑resultat om cast är tillåten eller nullptr annars.

Deprecated

Lämnad för bakåtkompatibilitet. Använd AsCast istället.

Se även

System::StaticCast_noexcept(SmartPtr<TFrom>) method

Utför statisk cast på Objects till Exception-objekt.

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
ParameterBeskrivning
TToMåltyp för Exception-typen.
TFromObject-typ.
ParameterTypeBeskrivning
objSmartPtr<TFrom>Källpekare.

ReturnValue

Cast‑resultat om cast är tillåten eller nullptr annars.

Deprecated

Lämnad för bakåtkompatibilitet. Använd AsCast istället.

Se även

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

Utför statisk cast på WeakPtr-objekt.

template<typename TTo,typename TFrom> CastResult<TTo>::type System::StaticCast_noexcept(WeakPtr<TFrom> const &obj)
ParameterBeskrivning
TToMålpointerns typ.
TFromKällpointerns typ.
ParameterTypeBeskrivning
objWeakPtr<TFrom> const&Källpekare.

ReturnValue

Cast‑resultat om cast är tillåten eller nullptr annars.

Deprecated

Lämnad för bakåtkompatibilitet. Använd AsCast istället.

Se även