## SoapHeaderAttribute::set_Required method


设置一个值，指示 SOAP 头是否必须被接收方 XML [Web](../../../system.web/) 服务或 XML [Web](../../../system.web/) 服务客户端理解并处理。

```cpp
void System::Web::Services::Protocols::SoapHeaderAttribute::set_Required(bool value)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| value | bool | 必须设置的值。 |

## Deprecated


## 另见

* Class [SoapHeaderAttribute](../)
* Namespace [System::Web::Services::Protocols](../../)
* Library [Aspose.Page for C++](../../../)
