Idioma

AIParameterNameAttribute Classe

Definição

Especifica o nome do esquema a usar para um AIFunction parâmetro.

public ref class AIParameterNameAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=false, Inherited=true)]
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public sealed class AIParameterNameAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=false, Inherited=true)]
public sealed class AIParameterNameAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=false, Inherited=true)>]
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type AIParameterNameAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=false, Inherited=true)>]
type AIParameterNameAttribute = class
    inherit Attribute
Public NotInheritable Class AIParameterNameAttribute
Inherits Attribute
Herança
AIParameterNameAttribute
Atributos

Observações

O nome é o identificador que um modelo vê e utiliza ao fornecer um argumento a uma função. Por defeito, isto é inferido a partir dos metadados .NET. Aplique este atributo para usar um identificador diferente.

Construtores

Nome Descrição
AIParameterNameAttribute(String)

Inicializa uma nova instância da AIParameterNameAttribute classe.

Propriedades

Nome Descrição
Name

Obtém o nome do esquema para usar no parâmetro.

Aplica-se a