你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CompoundFilter Class

Definition

Combine multiple filters using and or or.

public class CompoundFilter : Azure.AI.AgentServer.Contracts.Generated.Common.IUtf8JsonSerializable, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.CompoundFilter>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.CompoundFilter>
type CompoundFilter = class
    interface IUtf8JsonSerializable
    interface IJsonModel<CompoundFilter>
    interface IPersistableModel<CompoundFilter>
Public Class CompoundFilter
Implements IJsonModel(Of CompoundFilter), IPersistableModel(Of CompoundFilter), IUtf8JsonSerializable
Inheritance
CompoundFilter
Implements

Constructors

Name Description
CompoundFilter()

Initializes a new instance of CompoundFilter for deserialization.

CompoundFilter(CompoundFilterType, IEnumerable<BinaryData>)

Initializes a new instance of CompoundFilter.

CompoundFilter(CompoundFilterType, IList<BinaryData>, IDictionary<String,BinaryData>)

Initializes a new instance of CompoundFilter.

Properties

Name Description
Filters

Array of filters to combine. Items can be ComparisonFilter or CompoundFilter.

To assign an object to the element of this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

<remarks> Supported types:

</remarks> Examples:
  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

Type

Type of operation: and or or.

Methods

Name Description
DeserializeCompoundFilter(JsonElement, ModelReaderWriterOptions)
FromResponse(Response)

Deserializes the model from a raw response.

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
ToRequestContent()

Convert into a RequestContent.

Explicit Interface Implementations

Name Description
IJsonModel<CompoundFilter>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<CompoundFilter>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CompoundFilter>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CompoundFilter>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<CompoundFilter>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IUtf8JsonSerializable.Write(Utf8JsonWriter)

Applies to