Share via


bind 函式 (C++ REST SDK)

將個別參考繫結至字串值。

警告

本主題包含 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

請參閱

參考

web::http 命名空間