JsGetOwnPropertyNames() private method

private JsGetOwnPropertyNames ( JavaScriptValue obj, JavaScriptValue &propertyNames ) : JavaScriptErrorCode
obj JavaScriptValue
propertyNames JavaScriptValue
return JavaScriptErrorCode
        /// <summary>
        /// Gets the list of all properties on the object.
        /// </summary>
        /// <remarks>
        /// Requires an active script context.
        /// </remarks>
        /// <returns>An array of property names.</returns>
        public JavaScriptValue GetOwnPropertyNames()
        {
            JavaScriptValue propertyNamesReference;

            Native.ThrowIfError(Native.JsGetOwnPropertyNames(this, out propertyNamesReference));
            return(propertyNamesReference);
        }