System.String

Summary


Represents text as a series of Unicode characters.
Defined in String.js

Constructors

System.String()

Properties

Methods

  • static String Format()
    Replaces each format item in a specified String with the text equivalent of a corresponding object's value.

    Parameters

    • format - A composite format string (example: 'My name is {0}. My favorite color is {1}.')
    • args - An Object array containing zero or more objects to format.

    Return Values

    A copy of format in which the format items have been replaced by the String equivalent of the corresponding instances of object in args.
  • static Boolean IsNullOrEmpty(<String> value)
    Indicates whether the specified string is a null reference or an empty string.

    Parameters

    • value - A string.

    Return Values

    True if the value parameter is a null reference or an empty string (""); otherwise, false.
  • static String Join(<String> separator, <String> value)
    Concatenates a specified separator String between each element of a specified String array, yielding a single concatenated string. For example if separator is ", " and the elements of value are "apple", "orange", "grape", and "pear", Join(separator, value) returns "apple, orange, grape, pear".

    Parameters

    • separator - A String. If separator is null, the empty string is used instead.
    • value - An array of String.

    Return Values

    A String consisting of the elements of value interspersed with the separator string.