DataType Struct

Definition

Defines the data type of a field in a search index.

[Newtonsoft.Json.JsonConverter(typeof(Microsoft.Azure.Search.Serialization.ExtensibleEnumConverter<Microsoft.Azure.Search.Models.DataType>))]
public struct DataType : IEquatable<Microsoft.Azure.Search.Models.DataType>
[<Newtonsoft.Json.JsonConverter(typeof(Microsoft.Azure.Search.Serialization.ExtensibleEnumConverter<Microsoft.Azure.Search.Models.DataType>))>]
type DataType = struct
Public Structure DataType
Implements IEquatable(Of DataType)
Inheritance
DataType
Attributes
Newtonsoft.Json.JsonConverterAttribute
Implements

Fields

Boolean

Indicates that a field contains a Boolean value (true or false).

Complex

Indicates that a field contains one or more complex objects that in turn have sub-fields of other types.

DateTimeOffset

Indicates that a field contains a date/time value, including timezone information.

Double

Indicates that a field contains an IEEE double-precision floating point number.

GeographyPoint

Indicates that a field contains a geo-location in terms of longitude and latitude.

Int32

Indicates that a field contains a 32-bit signed integer.

Int64

Indicates that a field contains a 64-bit signed integer.

String

Indicates that a field contains a string.

Methods

Collection(DataType)

Creates a DataType for a collection of the given type.

Equals(DataType)

Compares the DataType for equality with another DataType.

Equals(Object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

ToString()

Returns a string representation of the DataType.

Operators

Equality(DataType, DataType)

Compares two DataType values for equality.

Explicit(DataType to String)

Defines explicit conversion from DataType to string.

Implicit(String to DataType)

Defines implicit conversion from string to DataType.

Inequality(DataType, DataType)

Compares two DataType values for inequality.

Extension Methods

IsComplex(DataType)

Indicates whether or not the given data type is a complex type.

Applies to