Partager via


JsGetStringLength Function

Gets the length of a string value.

Syntax

STDAPI_(JsErrorCode) JsGetStringLength(  
   _In_ JsValueRef stringValue,  
   _Out_ int *length  
);  

Parameters

stringValue
The string value to get the length of.

length
The length of the string.

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)