docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Property Length

    Length

    The current length in bytes of this string's content.

    Declaration
    public int Length { readonly get; set; }
    Property Value
    Type Description
    int

    The current length in bytes of this string's content.

    Implements
    IIndexable<T>.Length
    Remarks

    The length value does not include the null-terminator byte.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    Thrown if the new length is out of bounds.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)