الانتقال إلى وحدة التحكم

Firebase.Database.DatabaseReference

A Firebase reference represents a particular location in your FirebaseDatabase and can be used for reading or writing data to that FirebaseDatabase location.

Summary

A Firebase reference represents a particular location in your FirebaseDatabase and can be used for reading or writing data to that FirebaseDatabase location. This class is the starting point for all Database operations. After you've initialized it with a URL, you can use it to read data, write data, and to create mores instances of DatabaseReference.

Inheritance

Inherits from: Firebase.Database.Query

Properties

Database
Gets the Database instance associated with this reference.
Key
string
The last token in the location pointed to by this reference
Parent
A DatabaseReference to the parent location, or null if this instance references the root location.
Root
A reference to the root location of this FirebaseDatabase.

Public functions

Child(string pathString)
Get a reference to location relative to this one
Equals(object other)
override bool
Returns true if both objects reference the same database path.
GetHashCode()
override int
A hash code based on the string path of the reference.
OnDisconnect()
Provides access to disconnect operations at this location
Push()
Create a reference to an auto-generated child location.
RemoveValueAsync()
Set the value at this location to 'null'
RunTransaction(Func< MutableData, TransactionResult > transaction)
Run a transaction on the data at this location.
RunTransaction(Func< MutableData, TransactionResult > transaction, bool fireLocalEvents)
Run a transaction on the data at this location.
SetPriorityAsync(object priority)
Set a priority for the data at this Database location.
SetRawJsonValueAsync(string jsonValue)
Set the data at this location to the given string json represenation.
SetRawJsonValueAsync(string jsonValue, object priority)
Set the data and priority to the given values.
SetValueAsync(object value)
Set the data at this location to the given value.
SetValueAsync(object value, object priority)
Set the data and priority to the given values.
ToString()
override string
The full location url for this reference.
UpdateChildrenAsync(IDictionary< string, object > update)
Update the specific child keys to the specified values.

Public static functions

GoOffline()
void
Manually disconnect the FirebaseDatabase client from the server and disable automatic reconnection.
GoOnline()
void
Manually reestablish a connection to the FirebaseDatabase server and enable automatic reconnection.

Properties

Database

FirebaseDatabase Database

Gets the Database instance associated with this reference.

Details
Returns
The Database object for this reference.

Key

string Key

The last token in the location pointed to by this reference

Parent

DatabaseReference Parent

A DatabaseReference to the parent location, or null if this instance references the root location.

Root

DatabaseReference Root

A reference to the root location of this FirebaseDatabase.

Public functions

Child

DatabaseReference Child(
  string pathString
)

Get a reference to location relative to this one

<
Details
Parameters
pathString
The relative path from this reference to the new one that should be created