MsieJavaScriptEngine.JsRt.Native.JsGetPropertyIdFromName C# (CSharp) Method

JsGetPropertyIdFromName() private method

private JsGetPropertyIdFromName ( string name, JavaScriptPropertyId &propertyId ) : JavaScriptErrorCode
name string
propertyId JavaScriptPropertyId
return JavaScriptErrorCode
        internal static extern JavaScriptErrorCode JsGetPropertyIdFromName(string name, out JavaScriptPropertyId propertyId);

Usage Example

Ejemplo n.º 1
0
        /// <summary>
        /// Gets the property ID associated with the name.
        /// </summary>
        /// <remarks>
        /// <para>
        /// Property IDs are specific to a context and cannot be used across contexts.
        /// </para>
        /// <para>
        /// Requires an active script context.
        /// </para>
        /// </remarks>
        /// <param name="name">
        /// The name of the property ID to get or create. The name may consist of only digits.
        /// </param>
        /// <returns>The property ID in this runtime for the given name.</returns>
        public static JavaScriptPropertyId FromString(string name)
        {
            JavaScriptPropertyId id;

            Native.ThrowIfError(Native.JsGetPropertyIdFromName(name, out id));
            return(id);
        }
Native