## SoapMessage::CollectHeaders method


设置 SOAP 头的内部集合。

```cpp
void System::Web::Services::Protocols::SoapMessage::CollectHeaders(System::SharedPtr<Object> target, System::ArrayPtr<System::SharedPtr<SoapHeaderMapping>> headers, SoapHeaderDirection direction)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| target | System::SharedPtr\<Object\> | 获取 SOAP 标头的对象。 |
| headers | System::ArrayPtr\<System::SharedPtr\<SoapHeaderMapping\>\> | 用于填充内部集合的标头集合。 |
| direction | SoapHeaderDirection | SOAP 头方向。 |

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Enum [SoapHeaderDirection](../../soapheaderdirection/)
* Class [SoapMessage](../)
* Namespace [System::Web::Services::Protocols](../../)
* Library [Aspose.Page for C++](../../../)
