## HttpWebRequest::set_ContentLength method


设置要发送的请求数据的字节数。

```cpp
void System::Net::HttpWebRequest::set_ContentLength(int64_t length) override
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| length | int64_t | 要设置的字节数。 |

## 另见

* Class [HttpWebRequest](../)
* Namespace [System::Net](../../)
* Library [Aspose.Page for C++](../../../)
