## SoapMessage::SetException method


Ställer in det undantag som kastas av XML [Web](../../../system.web/)‑tjänstmetoden.

```cpp
void System::Web::Services::Protocols::SoapMessage::SetException(SoapException ex)
```


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| ex | SoapException | Undantaget som måste sättas. |

## Se även

* Typedef [SoapException](../../soapexception/)
* Class [SoapMessage](../)
* Namespace [System::Web::Services::Protocols](../../)
* Library [Aspose.PDF for C++](../../../)
