docs.unity.cn
    Show / Hide Table of Contents

    Class PropertyInvalidCastException

    Exception thrown when a wrong PropertyType is given to a property.

    Inheritance
    Object
    Exception
    GameFoundationException
    PropertyInvalidCastException
    Inherited Members
    GameFoundationException.k_MessageBuilder
    Namespace: UnityEngine.GameFoundation.Exceptions
    Syntax
    public class PropertyInvalidCastException : GameFoundationException, ISerializable, _Exception

    Constructors

    PropertyInvalidCastException(String, PropertyType, PropertyType)

    Initializes a new instance of the PropertyInvalidCastException type.

    Declaration
    public PropertyInvalidCastException(string key, PropertyType expectedType, PropertyType givenType)
    Parameters
    Type Name Description
    String key

    The identifier of the property.

    PropertyType expectedType

    The expected type of the property identified by the key.

    PropertyType givenType

    The given type of the property.

    Properties

    expectedPropertyType

    The expected property type.

    Declaration
    public PropertyType expectedPropertyType { get; }
    Property Value
    Type Description
    PropertyType

    givenPropertyType

    The given property type.

    Declaration
    public PropertyType givenPropertyType { get; }
    Property Value
    Type Description
    PropertyType

    propertyKey

    Key of the property that received the wrong property type.

    Declaration
    public string propertyKey { get; }
    Property Value
    Type Description
    String
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 16 June 2021