System::Web::HttpUtility::UrlEncodeToBytes 方法

HttpUtility::UrlEncodeToBytes(const String&) method

编码 URI 片段。

static System::ArrayPtr<uint8_t> System::Web::HttpUtility::UrlEncodeToBytes(const String &str)
参数类型描述
strconst String&要编码的 URI 片段。

ReturnValue

已编码的 URI 片段。

另见

HttpUtility::UrlEncodeToBytes(const String&, const System::SharedPtr<Text::Encoding>&) method

编码 URI 片段。

static System::ArrayPtr<uint8_t> System::Web::HttpUtility::UrlEncodeToBytes(const String &str, const System::SharedPtr<Text::Encoding> &e)
参数类型描述
strconst String&要编码的 URI 片段。
econst System::SharedPtr<Text::Encoding>&要使用的编码。

ReturnValue

已编码的 URI 片段。

另见

HttpUtility::UrlEncodeToBytes(const System::ArrayPtr<uint8_t>&) method

编码 URI 片段。

static System::ArrayPtr<uint8_t> System::Web::HttpUtility::UrlEncodeToBytes(const System::ArrayPtr<uint8_t> &bytes)
参数类型描述
字节const System::ArrayPtr<uint8_t>&要编码的 URI 片段。

ReturnValue

已编码的 URI 片段。

另见

HttpUtility::UrlEncodeToBytes(const System::ArrayPtr<uint8_t>&, int32_t, int32_t) method

编码 URI 片段。

static System::ArrayPtr<uint8_t> System::Web::HttpUtility::UrlEncodeToBytes(const System::ArrayPtr<uint8_t> &bytes, int32_t offset, int32_t count)
参数类型描述
字节const System::ArrayPtr<uint8_t>&要编码的 URI 片段。
offsetint32_t给定字节数组中的偏移量。
countint32_t要读取的字节数。

ReturnValue

已编码的 URI 片段。

另见