Show / Hide Table of Contents

    StringExtensions.Right(this string value, int? length) Method

    .NET Standard 2.x

    Obtains a specified number of characters from the end of a string.

    Namespace: PowerScript.Bridge

    Assembly: PowerScript.Bridge.dll

    Syntax

    public static string Right(this string value, int? length);
    

    Parameters

    value System.String

    The string from which you want characters returned.

    length System.Int32

    An int whose value is the number of characters you want returned from the right end of string.

    Returns

    System.String

    Returns the rightmost n characters in string if it succeeds and the empty string ("") if an error occurs. If any argument's value is null, Right returns null. If length is greater than or equal to the length of the string, Right returns the entire string. It does not add spaces to make the return value's length equal to length.

    Examples

    Coming soon.

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon