AIJsonSchemaCreateOptions.ParameterDescriptionProvider 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 each parameter in the MethodBase provided to CreateFunctionJsonSchema(MethodBase, String, String, JsonSerializerOptions, AIJsonSchemaCreateOptions) to obtain a description for the parameter.
public:
property Func<System::Reflection::ParameterInfo ^, System::String ^> ^ ParameterDescriptionProvider { Func<System::Reflection::ParameterInfo ^, System::String ^> ^ get(); void set(Func<System::Reflection::ParameterInfo ^, System::String ^> ^ value); };
public Func<System.Reflection.ParameterInfo,string?>? ParameterDescriptionProvider { get; init; }
member this.ParameterDescriptionProvider : Func<System.Reflection.ParameterInfo, string> with get, set
Public Property ParameterDescriptionProvider As Func(Of ParameterInfo, String)
Property Value
Remarks
The delegate receives a ParameterInfo instance and returns a string describing the parameter. If null, or if the delegate returns null, the description will be sourced from the MethodBase metadata (like DescriptionAttribute), if available.