JsContextAddRef() private method

private JsContextAddRef ( IeJsContext reference, uint &count ) : JsErrorCode
reference IeJsContext
count uint
return JsErrorCode
示例#1
0
        /// <summary>
        /// Adds a reference to a script context
        /// </summary>
        /// <remarks>
        /// Calling AddRef ensures that the context will not be freed until Release is called.
        /// </remarks>
        /// <returns>The object's new reference count</returns>
        public uint AddRef()
        {
            uint count;

            IeJsErrorHelpers.ThrowIfError(IeNativeMethods.JsContextAddRef(this, out count));

            return(count);
        }