System::AsCast methode
System::AsCast(const Source&) method
Castt het brontype naar het resulttype met behulp van de ‘as’ operator cast. Wordt gebruikt wanneer een eenvoudige constructor-achtige cast nodig is.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::Static, Result> System::AsCast(const Source &value)
| Parameter | Beschrijving |
|---|---|
| Bron | Het brontype. |
| Result | Het resulttype. |
| Parameter | Type | Beschrijving |
|---|---|---|
| value | const Source& | Object om te casten. |
ReturnValue
Het castresultaat.
Zie ook
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
Castt het brontype naar het resulttype met behulp van de ‘as’ operator cast. Wordt gebruikt wanneer het bron- en resulttype hetzelfde zijn.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::None, Result> System::AsCast(const Source &value)
| Parameter | Beschrijving |
|---|---|
| Bron | Het brontype. |
| Result | Het resulttype. |
| Parameter | Type | Beschrijving |
|---|---|---|
| value | const Source& | Object om te casten. |
ReturnValue
Het castresultaat.
Zie ook
- Enum Base64FormattingOptions
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
Castt het brontype naar het resulttype met behulp van de ‘as’ operator cast. Wordt gebruikt voor exceptie-wrappers.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::Exception, Result> System::AsCast(const Source &value)
| Parameter | Beschrijving |
|---|---|
| Bron | Het brontype. |
| Result | Het resulttype. |
| Parameter | Type | Beschrijving |
|---|---|---|
| value | const Source& | Object om te casten. |
ReturnValue
Het castresultaat. Retourneert nullptr als er geen conversie beschikbaar is.
Zie ook
- Typedef Exception
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
Castt het brontype naar het resulttype met behulp van de ‘as’ operator cast. Wordt gebruikt voor het casten van een object naar een exceptie.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::ObjectToException, Result> System::AsCast(const Source &value)
| Parameter | Beschrijving |
|---|---|
| Bron | Het brontype. |
| Result | Het resulttype. |
| Parameter | Type | Beschrijving |
|---|---|---|
| value | const Source& | Object om te casten. |
ReturnValue
Het castresultaat. Retourneert nullptr als er geen conversie beschikbaar is.
Zie ook
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
Castt het brontype naar het resulttype met behulp van de ‘as’ operator cast. Wordt gebruikt wanneer zowel het bron- als het resulttype slimme pointers zijn.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::Pointer, typename CastResult<Result>::type> System::AsCast(const Source &value)
| Parameter | Beschrijving |
|---|---|
| Bron | Het brontype. |
| Result | Het resulttype. |
| Parameter | Type | Beschrijving |
|---|---|---|
| value | const Source& | Object om te casten. |
ReturnValue
Het castresultaat. Retourneert nullptr als er geen conversie beschikbaar is.
Zie ook
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
Castt het brontype naar het resulttype met behulp van de ‘as’ operator cast. Wordt gebruikt wanneer zowel het bron- als het resulttype slimme pointers zijn (met expliciete SmartPtr<…> in het resulttype).
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::PointerToPointer, Result> System::AsCast(const Source &value)
| Parameter | Beschrijving |
|---|---|
| Bron | Het brontype. |
| Result | Het resulttype. |
| Parameter | Type | Beschrijving |
|---|---|---|
| value | const Source& | Object om te casten. |
ReturnValue
Het castresultaat. Retourneert nullptr als er geen conversie beschikbaar is.
Zie ook
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
Castt het brontype naar het resulttype met behulp van de ‘as’ operator cast. Wordt gebruikt voor het unboxen van een object naar nullable.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::UnboxingToNullable, Result> System::AsCast(const Source &value)
| Parameter | Beschrijving |
|---|---|
| Bron | Het brontype. |
| Result | Het resulttype. |
| Parameter | Type | Beschrijving |
|---|---|---|
| value | const Source& | Object om te casten. |
ReturnValue
Het castresultaat. Retourneert een lege nullable als er geen conversie beschikbaar is.
Zie ook
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
Castt het brontype naar het resulttype met behulp van de ‘as’ operator cast. Ongeldig unboxing naar een niet-objecttype.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::InterfaceUnboxingToNullable, Result> System::AsCast(const Source &value)
| Parameter | Beschrijving |
|---|---|
| Bron | Het brontype. |
| Result | Het resulttype. |
| Parameter | Type | Beschrijving |
|---|---|---|
| value | const Source& | Object om te casten. |
ReturnValue
Retourneert altijd null.
Zie ook
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
Ongeldig unboxing naar een niet-objecttype.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::InvalidUnboxing, Result> System::AsCast(const Source &value)
| Parameter | Beschrijving |
|---|---|
| Bron | Het brontype. |
| Result | Het resulttype. |
| Parameter | Type | Beschrijving |
|---|---|---|
| value | const Source& | Object om te casten. |
ReturnValue
Retourneert altijd null.
Zie ook
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
Castt het brontype naar het resulttype met behulp van de ‘as’ operator cast. Wordt gebruikt voor het boxen van een nullable object.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::NullableBoxing, Result> System::AsCast(const Source &value)
| Parameter | Beschrijving |
|---|---|
| Bron | Het brontype. |
| Result | Het resulttype. |
| Parameter | Type | Beschrijving |
|---|---|---|
| value | const Source& | Object om te casten. |
ReturnValue
Het castresultaat.
Zie ook
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
Castt het brontype naar het resulttype met behulp van de ‘as’ operator cast. Wordt gebruikt voor het boxen van een algemeen object.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::InterfaceBoxing, typename CastResult<Result>::type> System::AsCast(const Source &value)
| Parameter | Beschrijving |
|---|---|
| Bron | Het brontype. |
| Result | Het resulttype. |
| Parameter | Type | Beschrijving |
|---|---|---|
| value | const Source& | Object om te casten. |
ReturnValue
Het castresultaat.
Zie ook
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
Castt het brontype naar het resulttype met behulp van de ‘as’ operator cast. Wordt gebruikt voor het boxen van een algemeen object.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::Boxing, typename CastResult<Result>::type> System::AsCast(const Source &value)
| Parameter | Beschrijving |
|---|---|
| Bron | Het brontype. |
| Result | Het resulttype. |
| Parameter | Type | Beschrijving |
|---|---|---|
| value | const Source& | Object om te casten. |
ReturnValue
Het castresultaat.
Zie ook
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
Cast het brontype naar het resulttype met behulp van een ‘as’ operator cast. Gebruikt voor het uitpakken van strings.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::UnboxingToString, Result> System::AsCast(const Source &value)
| Parameter | Beschrijving |
|---|---|
| Bron | Het brontype. |
| Result | Het resulttype. |
| Parameter | Type | Beschrijving |
|---|---|---|
| value | const Source& | Object om te casten. |
ReturnValue
Het castresultaat.
Zie ook
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
Cast het brontype naar het resulttype met behulp van een ‘as’ operator cast. Gebruikt voor nullptr-casting.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::Null, typename CastResult<Result>::type> System::AsCast(const Source &value)
| Parameter | Beschrijving |
|---|---|
| Bron | Het brontype. |
| Result | Het resulttype. |
| Parameter | Type | Beschrijving |
|---|---|---|
| value | const Source& | Object om te casten. |
ReturnValue
Het castresultaat.
Zie ook
- Namespace System
- Library Aspose.Page for C++
System::AsCast(const Source&) method
Cast het brontype naar het resulttype met behulp van een ‘as’ operator cast. Gebruikt om tussen arrays te casten.
template<typename Result,typename Source> std::enable_if_t<Details::CastType<Source, Result>::Array, typename CastResult<Result>::type> System::AsCast(const Source &value)
| Parameter | Beschrijving |
|---|---|
| Bron | Het brontype. |
| Result | Het resulttype. |
| Parameter | Type | Beschrijving |
|---|---|---|
| value | const Source& | Object om te casten. |
ReturnValue
Het castresultaat. Retourneert nullptr als er geen conversie beschikbaar is voor een array‑element.
Zie ook
- Namespace System
- Library Aspose.Page for C++