Compartir a través de


JsPointerToString Function

Creates a string value from a string pointer.

Syntax

STDAPI_(JsErrorCode) JsPointerToString(  
   _In_reads_(stringLength) const wchar_t *stringValue,  
   _In_ size_t stringLength,  
   _Out_ JsValueRef *value  
);  

Parameters

stringValue
The string pointer to convert to a string value.

stringLength
The length of the string to convert.

value
The new string value.

Return Value

The code JsNoError if the operation succeeded, a failure code otherwise.

Remarks

Requires an active script context.

Requirements

Header: jsrt.h

See Also

Reference (JavaScript Runtime)