curl_multi_add_handle() приватный Метод

private curl_multi_add_handle ( IntPtr pmulti, IntPtr peasy ) : CurlMultiCode
pmulti System.IntPtr
peasy System.IntPtr
Результат CurlMultiCode
Пример #1
0
        /// <summary>
        ///     Add an CurlEasy object.
        /// </summary>
        /// <param name="curlEasy">
        ///     <see cref="CurlEasy" /> object to add.
        /// </param>
        /// <returns>
        ///     A <see cref="CurlMultiCode" />, hopefully <c>CurlMultiCode.Ok</c>
        /// </returns>
        /// <exception cref="System.NullReferenceException">
        ///     This is thrown if the native <c>CurlMulti</c> handle wasn't
        ///     created successfully.
        /// </exception>
        public CurlMultiCode AddHandle(CurlEasy curlEasy)
        {
            ensureHandle();
            var p = curlEasy.Handle;

            _htEasy.Add(p, curlEasy);
            return(NativeMethods.curl_multi_add_handle(_pMulti, p));
        }