AIJsonSchemaCreateOptions.IncludeParameter Property
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.
Gets a callback that is invoked for every parameter in the MethodBase provided to CreateFunctionJsonSchema(MethodBase, String, String, JsonSerializerOptions, AIJsonSchemaCreateOptions) in order to determine whether it should be included in the generated schema.
public:
property Func<System::Reflection::ParameterInfo ^, bool> ^ IncludeParameter { Func<System::Reflection::ParameterInfo ^, bool> ^ get(); void set(Func<System::Reflection::ParameterInfo ^, bool> ^ value); };
public Func<System.Reflection.ParameterInfo,bool>? IncludeParameter { get; init; }
member this.IncludeParameter : Func<System.Reflection.ParameterInfo, bool> with get, set
Public Property IncludeParameter As Func(Of ParameterInfo, Boolean)
Property Value
Remarks
By default, when IncludeParameter is null
, all parameters other than those of type CancellationToken are included in the generated schema. The delegate is not invoked for CancellationToken parameters.