Field.NewComplex(String, Boolean, IList<Field>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new complex Field with required arguments.
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
Parameters
- name
- String
The name of the complex field.
- isCollection
- Boolean
true
if the field should be of type Collection(Edm.ComplexType); false
if it should be
of type Edm.ComplexType.
The sub-fields that comprise the complex type. They can be simple or complex fields themselves.
Returns
Exceptions
Thrown if fields
is null.
Thrown if fields
is empty.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應