将单个引用绑定到字符串值。
警告
本主题包含有关 C++ REST SDK 1.0 (codename "Casablanca") 的信息。如果你正在从 Codeplex Casablanca 网页 使用更高版本,则使用 http://casablanca.codeplex.com/documentation 上的本地文档。
template< typename key_type, typename _t > bool bind( const key_type &text, _t &ref ); template < typename key_type > bool bind( const key_type &text, utility::string_t &ref );
参数
key_type
字符串值的类型。_t
要绑定到的值的类型。text
字符串值。ref
要绑定到的值。
返回值
如果绑定成功,则为 true,否则为 false。
要求
**标头:**http_msg.h
**命名空间:**web::http