Stay organized with collections
Save and categorize content based on your preferences.
Firebase.Firestore.FirestoreDataAttribute
Attribute indicating that a type is intended to be used with Firestore.
Summary
Inheritance
Inherits from: Attribute
Properties
|
ConverterType
|
System.Type
A custom converter type to use for serializing and deserializing the attributed type.
|
UnknownPropertyHandling
|
The strategy to use when handling unknown properties.
|
Properties
ConverterType
System.Type ConverterType
A custom converter type to use for serializing and deserializing the attributed type.
UnknownPropertyHandling
UnknownPropertyHandling UnknownPropertyHandling
The strategy to use when handling unknown properties.
The default is UnknownPropertyHandling.Warn.
Public functions
FirestoreDataAttribute
FirestoreDataAttribute()
Constructs a new instance with default values for options.
FirestoreDataAttribute
FirestoreDataAttribute(
UnknownPropertyHandling unknownPropertyHandling
)
Constructs a new instance with the given handling for unknown properties.
Details |
Parameters |
unknownPropertyHandling
|
The unknown property handling strategy to use.
|
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-06-17 UTC.
[null,null,["Last updated 2021-06-17 UTC."],[],[],null,["# Firebase.Firestore.FirestoreDataAttribute Class Reference\n\nFirebase.Firestore.FirestoreDataAttribute\n=========================================\n\nAttribute indicating that a type is intended to be used with [Firestore](/docs/reference/unity/namespace/firebase/firestore#namespace_firebase_1_1_firestore).\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: Attribute\n\n| ### Constructors and Destructors ||\n|---|---|\n| [FirestoreDataAttribute](#class_firebase_1_1_firestore_1_1_firestore_data_attribute_1a301302b8726c7d6085243700e7de873e)`()` Constructs a new instance with default values for options. ||\n| [FirestoreDataAttribute](#class_firebase_1_1_firestore_1_1_firestore_data_attribute_1a91e0922afbd78f16a14d5c5049eda7ec)`(`[UnknownPropertyHandling](/docs/reference/unity/namespace/firebase/firestore#namespace_firebase_1_1_firestore_1a894811830fc00e909a8f0df0fa560e25)` unknownPropertyHandling)` Constructs a new instance with the given handling for unknown properties. ||\n\n| ### Properties ||\n|--------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ConverterType](#class_firebase_1_1_firestore_1_1_firestore_data_attribute_1a5dfb4f90735b93918cbff9590af20904) | `System.Type` A custom converter type to use for serializing and deserializing the attributed type. |\n| [UnknownPropertyHandling](#class_firebase_1_1_firestore_1_1_firestore_data_attribute_1a77536a9697dedcfc671762e492e54654) | [UnknownPropertyHandling](/docs/reference/unity/namespace/firebase/firestore#namespace_firebase_1_1_firestore_1a894811830fc00e909a8f0df0fa560e25) The strategy to use when handling unknown properties. |\n\nProperties\n----------\n\n### ConverterType\n\n```c#\nSystem.Type ConverterType\n``` \nA custom converter type to use for serializing and deserializing the attributed type. \n\n### UnknownPropertyHandling\n\n```c#\nUnknownPropertyHandling UnknownPropertyHandling\n``` \nThe strategy to use when handling unknown properties.\n\nThe default is UnknownPropertyHandling.Warn.\n\nPublic functions\n----------------\n\n### FirestoreDataAttribute\n\n```c#\n FirestoreDataAttribute()\n``` \nConstructs a new instance with default values for options. \n\n### FirestoreDataAttribute\n\n```c#\n FirestoreDataAttribute(\n UnknownPropertyHandling unknownPropertyHandling\n)\n``` \nConstructs a new instance with the given handling for unknown properties.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |---------------------------|------------------------------------------------| | `unknownPropertyHandling` | The unknown property handling strategy to use. | |"]]