Stay organized with collections
Save and categorize content based on your preferences.
Firebase.Firestore.FirestorePropertyAttribute
Attribute indicating that a property should be included in Firestore conversions.
Summary
Inheritance
Inherits from: Attribute
Properties
|
ConverterType
|
System.Type
A custom converter type to use for the attributed property.
|
Name
|
string
The name to use within the Firestore document.
|
Properties
ConverterType
System.Type ConverterType
A custom converter type to use for the attributed property.
Name
string Name
The name to use within the Firestore document.
If not set, the name of the property is used directly.
Public functions
FirestorePropertyAttribute
FirestorePropertyAttribute()
Creates an instance with no specified name.
FirestorePropertyAttribute
FirestorePropertyAttribute(
string name
)
Creates an instance with the specified name.
Details |
Parameters |
name
|
The name to use within the Firestore document.
|
|
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.FirestorePropertyAttribute Class Reference\n\nFirebase.Firestore.FirestorePropertyAttribute\n=============================================\n\nAttribute indicating that a property should be included in [Firestore](/docs/reference/unity/namespace/firebase/firestore#namespace_firebase_1_1_firestore) conversions.\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: Attribute\n\n| ### Constructors and Destructors ||\n|---|---|\n| [FirestorePropertyAttribute](#class_firebase_1_1_firestore_1_1_firestore_property_attribute_1ab547faec0f9ec373544725e92080ae4e)`()` Creates an instance with no specified name. ||\n| [FirestorePropertyAttribute](#class_firebase_1_1_firestore_1_1_firestore_property_attribute_1a5ddd8053eb2185f203d542acc41a0253)`(string name)` Creates an instance with the specified name. ||\n\n| ### Properties ||\n|--------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ConverterType](#class_firebase_1_1_firestore_1_1_firestore_property_attribute_1aad47a5790f604649b51207f76a74857b) | `System.Type` A custom converter type to use for the attributed property. |\n| [Name](#class_firebase_1_1_firestore_1_1_firestore_property_attribute_1af5c1e545a500bf952248c6e9e1bc1f90) | `string` The name to use within the [Firestore](/docs/reference/unity/namespace/firebase/firestore#namespace_firebase_1_1_firestore) document. |\n\nProperties\n----------\n\n### ConverterType\n\n```c#\nSystem.Type ConverterType\n``` \nA custom converter type to use for the attributed property. \n\n### Name\n\n```c#\nstring Name\n``` \nThe name to use within the [Firestore](/docs/reference/unity/namespace/firebase/firestore#namespace_firebase_1_1_firestore) document.\n\nIf not set, the name of the property is used directly.\n\nPublic functions\n----------------\n\n### FirestorePropertyAttribute\n\n```c#\n FirestorePropertyAttribute()\n``` \nCreates an instance with no specified name. \n\n### FirestorePropertyAttribute\n\n```c#\n FirestorePropertyAttribute(\n string name\n)\n``` \nCreates an instance with the specified name.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |--------|---------------------------------------------------------------------------------------------------------------------------------------| | `name` | The name to use within the [Firestore](/docs/reference/unity/namespace/firebase/firestore#namespace_firebase_1_1_firestore) document. | |"]]