Struct QueryArgument
A type that can represent any valid query argument type. It is typically used when filtering a Realm collection using the string-based query language - e.g. in Filter<T>(IQueryable<T>, string, params QueryArgument[]).
Namespace: Realms
Assembly: Realm.dll
Syntax
public readonly struct QueryArgument
Methods
| Edit this page View SourceToString()
Returns a string representation of the value.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string representation of the value. |
Overrides
Operators
| Edit this page View Sourceimplicit operator QueryArgument(Decimal128)
Implicitly constructs a QueryArgument from MongoDB.Bson.Decimal128.
Declaration
public static implicit operator QueryArgument(Decimal128 value)
Parameters
Type | Name | Description |
---|---|---|
Decimal128 | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(ObjectId)
Implicitly constructs a QueryArgument from MongoDB.Bson.ObjectId.
Declaration
public static implicit operator QueryArgument(ObjectId value)
Parameters
Type | Name | Description |
---|---|---|
ObjectId | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(GeoShapeBase?)
Implicitly constructs a QueryArgument from GeoShapeBase.
Declaration
public static implicit operator QueryArgument(GeoShapeBase? value)
Parameters
Type | Name | Description |
---|---|---|
GeoShapeBase | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(RealmInteger<byte>)
Implicitly constructs a QueryArgument from RealmInteger<byte>.
Declaration
public static implicit operator QueryArgument(RealmInteger<byte> value)
Parameters
Type | Name | Description |
---|---|---|
RealmInteger<byte> | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(RealmInteger<short>)
Implicitly constructs a QueryArgument from RealmInteger<short>.
Declaration
public static implicit operator QueryArgument(RealmInteger<short> value)
Parameters
Type | Name | Description |
---|---|---|
RealmInteger<short> | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(RealmInteger<int>)
Implicitly constructs a QueryArgument from RealmInteger<int>.
Declaration
public static implicit operator QueryArgument(RealmInteger<int> value)
Parameters
Type | Name | Description |
---|---|---|
RealmInteger<int> | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(RealmInteger<long>)
Implicitly constructs a QueryArgument from RealmInteger<long>.
Declaration
public static implicit operator QueryArgument(RealmInteger<long> value)
Parameters
Type | Name | Description |
---|---|---|
RealmInteger<long> | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(RealmObjectBase?)
Implicitly constructs a QueryArgument from RealmObjectBase?.
Declaration
public static implicit operator QueryArgument(RealmObjectBase? value)
Parameters
Type | Name | Description |
---|---|---|
RealmObjectBase | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(RealmValue)
Implicitly constructs a QueryArgument from RealmValue.
Declaration
public static implicit operator QueryArgument(RealmValue value)
Parameters
Type | Name | Description |
---|---|---|
RealmValue | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(bool)
Implicitly constructs a QueryArgument from bool.
Declaration
public static implicit operator QueryArgument(bool value)
Parameters
Type | Name | Description |
---|---|---|
bool | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(byte)
Implicitly constructs a QueryArgument from byte.
Declaration
public static implicit operator QueryArgument(byte value)
Parameters
Type | Name | Description |
---|---|---|
byte | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(byte[]?)
Implicitly constructs a QueryArgument from byte[]?.
Declaration
public static implicit operator QueryArgument(byte[]? value)
Parameters
Type | Name | Description |
---|---|---|
byte[] | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(char)
Implicitly constructs a QueryArgument from char.
Declaration
public static implicit operator QueryArgument(char value)
Parameters
Type | Name | Description |
---|---|---|
char | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(DateTimeOffset)
Implicitly constructs a QueryArgument from DateTimeOffset.
Declaration
public static implicit operator QueryArgument(DateTimeOffset value)
Parameters
Type | Name | Description |
---|---|---|
DateTimeOffset | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(decimal)
Implicitly constructs a QueryArgument from decimal.
Declaration
public static implicit operator QueryArgument(decimal value)
Parameters
Type | Name | Description |
---|---|---|
decimal | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(double)
Implicitly constructs a QueryArgument from double.
Declaration
public static implicit operator QueryArgument(double value)
Parameters
Type | Name | Description |
---|---|---|
double | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(Guid)
Implicitly constructs a QueryArgument from Guid.
Declaration
public static implicit operator QueryArgument(Guid value)
Parameters
Type | Name | Description |
---|---|---|
Guid | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(short)
Implicitly constructs a QueryArgument from short.
Declaration
public static implicit operator QueryArgument(short value)
Parameters
Type | Name | Description |
---|---|---|
short | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(int)
Implicitly constructs a QueryArgument from int.
Declaration
public static implicit operator QueryArgument(int value)
Parameters
Type | Name | Description |
---|---|---|
int | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(long)
Implicitly constructs a QueryArgument from long.
Declaration
public static implicit operator QueryArgument(long value)
Parameters
Type | Name | Description |
---|---|---|
long | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(Decimal128?)
Implicitly constructs a QueryArgument from Decimal128?.
Declaration
public static implicit operator QueryArgument(Decimal128? value)
Parameters
Type | Name | Description |
---|---|---|
Decimal128? | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(ObjectId?)
Implicitly constructs a QueryArgument from ObjectId?.
Declaration
public static implicit operator QueryArgument(ObjectId? value)
Parameters
Type | Name | Description |
---|---|---|
ObjectId? | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(RealmInteger<byte>?)
Implicitly constructs a QueryArgument from RealmInteger<byte>?.
Declaration
public static implicit operator QueryArgument(RealmInteger<byte>? value)
Parameters
Type | Name | Description |
---|---|---|
RealmInteger<byte>? | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(RealmInteger<short>?)
Implicitly constructs a QueryArgument from RealmInteger<short>?.
Declaration
public static implicit operator QueryArgument(RealmInteger<short>? value)
Parameters
Type | Name | Description |
---|---|---|
RealmInteger<short>? | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(RealmInteger<int>?)
Implicitly constructs a QueryArgument from RealmInteger<int>?.
Declaration
public static implicit operator QueryArgument(RealmInteger<int>? value)
Parameters
Type | Name | Description |
---|---|---|
RealmInteger<int>? | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(RealmInteger<long>?)
Implicitly constructs a QueryArgument from RealmInteger<long>?.
Declaration
public static implicit operator QueryArgument(RealmInteger<long>? value)
Parameters
Type | Name | Description |
---|---|---|
RealmInteger<long>? | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(bool?)
Implicitly constructs a QueryArgument from bool?.
Declaration
public static implicit operator QueryArgument(bool? value)
Parameters
Type | Name | Description |
---|---|---|
bool? | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(byte?)
Implicitly constructs a QueryArgument from byte?.
Declaration
public static implicit operator QueryArgument(byte? value)
Parameters
Type | Name | Description |
---|---|---|
byte? | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(char?)
Implicitly constructs a QueryArgument from char?.
Declaration
public static implicit operator QueryArgument(char? value)
Parameters
Type | Name | Description |
---|---|---|
char? | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(DateTimeOffset?)
Implicitly constructs a QueryArgument from DateTimeOffset?.
Declaration
public static implicit operator QueryArgument(DateTimeOffset? value)
Parameters
Type | Name | Description |
---|---|---|
DateTimeOffset? | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(decimal?)
Implicitly constructs a QueryArgument from decimal?.
Declaration
public static implicit operator QueryArgument(decimal? value)
Parameters
Type | Name | Description |
---|---|---|
decimal? | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(double?)
Implicitly constructs a QueryArgument from double?.
Declaration
public static implicit operator QueryArgument(double? value)
Parameters
Type | Name | Description |
---|---|---|
double? | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(Guid?)
Implicitly constructs a QueryArgument from Guid?.
Declaration
public static implicit operator QueryArgument(Guid? value)
Parameters
Type | Name | Description |
---|---|---|
Guid? | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(short?)
Implicitly constructs a QueryArgument from short?.
Declaration
public static implicit operator QueryArgument(short? value)
Parameters
Type | Name | Description |
---|---|---|
short? | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(int?)
Implicitly constructs a QueryArgument from int?.
Declaration
public static implicit operator QueryArgument(int? value)
Parameters
Type | Name | Description |
---|---|---|
int? | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(long?)
Implicitly constructs a QueryArgument from long?.
Declaration
public static implicit operator QueryArgument(long? value)
Parameters
Type | Name | Description |
---|---|---|
long? | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(float?)
Implicitly constructs a QueryArgument from float?.
Declaration
public static implicit operator QueryArgument(float? value)
Parameters
Type | Name | Description |
---|---|---|
float? | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(float)
Implicitly constructs a QueryArgument from float.
Declaration
public static implicit operator QueryArgument(float value)
Parameters
Type | Name | Description |
---|---|---|
float | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |
implicit operator QueryArgument(string?)
Implicitly constructs a QueryArgument from string?.
Declaration
public static implicit operator QueryArgument(string? value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The value to store in the QueryArgument. |
Returns
Type | Description |
---|---|
QueryArgument | A QueryArgument containing the supplied |