System::Web::HttpUtility::UrlEncode 方法
内容
[
隐藏
]HttpUtility::UrlEncode(const System::ArrayPtr<uint8_t>&) method
编码 URI 片段。
static String System::Web::HttpUtility::UrlEncode(const System::ArrayPtr<uint8_t> &bytes)
| 参数 | 类型 | 描述 |
|---|---|---|
| 字节 | const System::ArrayPtr<uint8_t>& | 要编码的 URI 片段。 |
ReturnValue
已编码的 URI 片段。
另见
- Class String
- Typedef ArrayPtr
- Class HttpUtility
- Namespace System::Web
- Library Aspose.Font for C++
HttpUtility::UrlEncode(const System::ArrayPtr<uint8_t>&, int32_t, int32_t) method
编码 URI 片段。
static String System::Web::HttpUtility::UrlEncode(const System::ArrayPtr<uint8_t> &bytes, int32_t offset, int32_t count)
| 参数 | 类型 | 描述 |
|---|---|---|
| 字节 | const System::ArrayPtr<uint8_t>& | 要编码的 URI 片段。 |
| offset | int32_t | 给定字节数组中的偏移量。 |
| count | int32_t | 要读取的字节数。 |
ReturnValue
已编码的 URI 片段。
另见
- Class String
- Typedef ArrayPtr
- Class HttpUtility
- Namespace System::Web
- Library Aspose.Font for C++
HttpUtility::UrlEncode(String) method
编码 URI 片段。
static String System::Web::HttpUtility::UrlEncode(String str)
| 参数 | 类型 | 描述 |
|---|---|---|
| str | String | 要编码的 URI 片段。 |
ReturnValue
已编码的 URI 片段。
另见
- Class String
- Class HttpUtility
- Namespace System::Web
- Library Aspose.Font for C++
HttpUtility::UrlEncode(String, const System::SharedPtr<Text::Encoding>&) method
编码 URI 片段。
static String System::Web::HttpUtility::UrlEncode(String str, const System::SharedPtr<Text::Encoding> &e)
| 参数 | 类型 | 描述 |
|---|---|---|
| str | String | 要编码的 URI 片段。 |
| e | const System::SharedPtr<Text::Encoding>& | 要使用的编码。 |
ReturnValue
已编码的 URI 片段。
另见
- Class String
- Typedef SharedPtr
- Class Encoding
- Class HttpUtility
- Namespace System::Web
- Library Aspose.Font for C++