bookmark_borderbookmark
Stay organized with collections
Save and categorize content based on your preferences.
Attribute indicating that a property should be populated with the Firestore document ID.
Summary
This attribute must only be applied to properties of string or DocumentReference. This attribute is ignored when serializing a document to Firestore. This attribute must not be applied on a property which also has FirestorePropertyAttribute.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-06-17 UTC."],[],[],null,["# Firebase.Firestore.FirestoreDocumentIdAttribute Class Reference\n\nFirebase.Firestore.FirestoreDocumentIdAttribute\n===============================================\n\nAttribute indicating that a property should be populated with the [Firestore](/docs/reference/unity/namespace/firebase/firestore#namespace_firebase_1_1_firestore) document ID.\n\nSummary\n-------\n\nThis attribute must only be applied to properties of string or [DocumentReference](/docs/reference/unity/class/firebase/firestore/document-reference#class_firebase_1_1_firestore_1_1_document_reference). This attribute is ignored when serializing a document to [Firestore](/docs/reference/unity/namespace/firebase/firestore#namespace_firebase_1_1_firestore). This attribute must not be applied on a property which also has [FirestorePropertyAttribute](/docs/reference/unity/class/firebase/firestore/firestore-property-attribute#class_firebase_1_1_firestore_1_1_firestore_property_attribute).\n\n### Inheritance\n\nInherits from: Attribute\n\n| ### Constructors and Destructors ||\n|---|---|\n| [FirestoreDocumentIdAttribute](#class_firebase_1_1_firestore_1_1_firestore_document_id_attribute_1a26e83ee2eaf04e582b562f3420424b9c)`()` Creates an instance of the attribute. ||\n\nPublic functions\n----------------\n\n### FirestoreDocumentIdAttribute\n\n```c#\n FirestoreDocumentIdAttribute()\n``` \nCreates an instance of the attribute."]]