StringPrototype.slice(Object, Double, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.