Show / Hide Table of Contents

    StringExtensions.LenA(this string str) Method

    .NET Standard 2.x

    Temporarily converts the string from Unicode to DBCS based on the current locale, then obtains a string length in bytes.

    Namespace: PowerScript.Bridge

    Assembly: PowerScript.Bridge.dll

    Syntax

    public static int? LenA(this string str);
    

    Parameters

    str System.String

    The string for which you want the length in number of bytes.

    Returns

    System.Int32

    Returns an Int whose value is the length of str if it succeeds and -1 if an error occurs.

    Examples

    Coming soon.

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon