AIFunctionFactoryOptions.SerializerOptions Property

Definition

Gets or sets the JsonSerializerOptions used to marshal .NET values being passed to the underlying delegate.

public:
 property System::Text::Json::JsonSerializerOptions ^ SerializerOptions { System::Text::Json::JsonSerializerOptions ^ get(); void set(System::Text::Json::JsonSerializerOptions ^ value); };
public System.Text.Json.JsonSerializerOptions? SerializerOptions { get; set; }
member this.SerializerOptions : System.Text.Json.JsonSerializerOptions with get, set
Public Property SerializerOptions As JsonSerializerOptions

Property Value

Remarks

If no value has been specified, the DefaultOptions instance will be used.

The UnmappedMemberHandling setting is honored by the function parameter binder: when set to Disallow, invoking the produced AIFunction throws if the supplied AIFunctionArguments contains keys that do not correspond to a bindable parameter of the underlying method.

Applies to