Class Field
Field
Inheritance
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class Field : IEquatable<Field>
Constructors
Field(String, Nullable<Field.TypeEnum>, String, List<Field>)
Initializes a new instance of the Field class.
Declaration
public Field(string value = null, Field.TypeEnum? type = null, string alias = null, List<Field> args = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | value is the value of the field. Meaning of the value is implied by the |
System.Nullable<Field.TypeEnum> | type |
|
System.String | alias | Alias overrides the field name in the returned response. Applies only if type is |
List<Field> | args | Args are the arguments to the function. |
Properties
Alias
Alias overrides the field name in the returned response. Applies only if type is func
Declaration
public string Alias { get; set; }
Property Value
Type | Description |
---|---|
System.String | Alias overrides the field name in the returned response. Applies only if type is |
Args
Args are the arguments to the function
Declaration
public List<Field> Args { get; set; }
Property Value
Type | Description |
---|---|
List<Field> | Args are the arguments to the function |
Type
type
describes the field type. func
is a function. field
is a field reference.
Declaration
public Field.TypeEnum? Type { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Field.TypeEnum> |
|
Value
value is the value of the field. Meaning of the value is implied by the type
key
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.String | value is the value of the field. Meaning of the value is implied by the |
Methods
Equals(Field)
Returns true if Field instances are equal
Declaration
public bool Equals(Field input)
Parameters
Type | Name | Description |
---|---|---|
Field | input | Instance of Field to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |