JsGetOwnPropertyDescriptor() private method

private JsGetOwnPropertyDescriptor ( JavaScriptValue obj, JavaScriptPropertyId propertyId, JavaScriptValue &propertyDescriptor ) : JavaScriptErrorCode
obj JavaScriptValue
propertyId JavaScriptPropertyId
propertyDescriptor JavaScriptValue
return JavaScriptErrorCode
        /// <summary>
        /// Gets a property descriptor for an object's own property.
        /// </summary>
        /// <remarks>
        /// Requires an active script context.
        /// </remarks>
        /// <param name="propertyId">The ID of the property.</param>
        /// <returns>The property descriptor.</returns>
        public JavaScriptValue GetOwnPropertyDescriptor(JavaScriptPropertyId propertyId)
        {
            JavaScriptValue descriptorReference;

            Native.ThrowIfError(Native.JsGetOwnPropertyDescriptor(this, propertyId, out descriptorReference));
            return(descriptorReference);
        }