JsPointerToString() private méthode

private JsPointerToString ( string value, UIntPtr stringLength, IeJsValue &stringValue ) : JsErrorCode
value string
stringLength System.UIntPtr
stringValue IeJsValue
Résultat JsErrorCode
Exemple #1
0
        /// <summary>
        /// Creates a <c>String</c> value from a string pointer
        /// </summary>
        /// <remarks>
        /// Requires an active script context.
        /// </remarks>
        /// <param name="value">The string  to convert to a <c>String</c> value</param>
        /// <returns>The new <c>String</c> value</returns>
        public static IeJsValue FromString(string value)
        {
            IeJsValue reference;

            IeJsErrorHelpers.ThrowIfError(IeNativeMethods.JsPointerToString(value, new UIntPtr((uint)value.Length), out reference));

            return(reference);
        }