## SoapMessage::SetHeaders method


设置 SOAP 标头的集合。

```cpp
void System::Web::Services::Protocols::SoapMessage::SetHeaders(System::SharedPtr<SoapHeaderCollection> headers)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| headers | System::SharedPtr\<SoapHeaderCollection\> | 要设置的 SOAP 头集合。 |

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [SoapHeaderCollection](../../soapheadercollection/)
* Class [SoapMessage](../)
* Namespace [System::Web::Services::Protocols](../../)
* Library [Aspose.Page for C++](../../../)
