StringPrototype.slice(Object, Double, Object) Method

Definition

Creates a new string that contains the specified consecutive characters from the specified string.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 static System::String ^ slice(System::Object ^ thisob, double start, System::Object ^ end);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_slice)]
public static string slice (object thisob, double start, object end);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_slice)>]
static member slice : obj * double * obj -> string
Public Shared Function slice (thisob As Object, start As Double, end As Object) As String

Parameters

thisob
Object

The object that this method is acting upon.

start
Double

The first consecutive character to get.

end
Object

The last consecutive character to get.

Returns

A new string that contains the consecutive characters between start and end.

Attributes

Applies to

See also