Idioma

AIFunctionNameAttribute Classe

Definição

Especifica o nome a usar para um AIFunction.

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

Observações

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

Construtores

Name Descrição
AIFunctionNameAttribute(String)

Inicializa uma nova instância da AIFunctionNameAttribute classe.

Propriedades

Name Descrição
Name

Recebe o nome para a função.

Aplica-se a