Partager via


Field.NewComplex(String, Boolean, IList<Field>) Méthode

Définition

Crée un champ complexe avec les arguments requis.

public static Microsoft.Azure.Search.Models.Field NewComplex (string name, bool isCollection, System.Collections.Generic.IList<Microsoft.Azure.Search.Models.Field> fields);
static member NewComplex : string * bool * System.Collections.Generic.IList<Microsoft.Azure.Search.Models.Field> -> Microsoft.Azure.Search.Models.Field
Public Shared Function NewComplex (name As String, isCollection As Boolean, fields As IList(Of Field)) As Field

Paramètres

name
String

Nom du champ complexe.

isCollection
Boolean

true si le champ doit être de type Collection(Edm.ComplexType) ; false s’il doit être de type Edm.ComplexType.

fields
IList<Field>

Sous-champs qui composent le type complexe. Il peut s’agir de champs simples ou complexes.

Retours

Exceptions

Levée si fields a la valeur null.

Levée si fields est vide.

S’applique à