docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetPropertyRecursively

    GetPropertyRecursively(Type, string, BindingFlags)

    Gets a specific property of the Type or any of its base Types.

    Declaration
    public static PropertyInfo GetPropertyRecursively(this Type type, string name, BindingFlags bindingAttr)
    Parameters
    Type Name Description
    Type type

    The type which will be searched for fields.

    string name

    Name of the property to get.

    BindingFlags bindingAttr

    A bitmask specifying how the search is conducted.

    Returns
    Type Description
    PropertyInfo

    An object representing the field that matches the specified requirements, if found; otherwise, null.

    In This Article
    Back to top
    Copyright © 2024 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)