Nyelv

AIFunctionNameAttribute Osztály

Definíció

Megadja az adott AIFunctionnévhez használni kívánt nevet.

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
Öröklődés
AIFunctionNameAttribute
Attribútumok

Megjegyzések

A név az az azonosító, amelyet a modell egy függvény meghívásához lát és használ. Ez alapértelmezés szerint .NET metaadatokból következik. Alkalmazza ezt az attribútumot egy másik azonosító használatára.

Konstruktorok

Név Description
AIFunctionNameAttribute(String)

Inicializálja a AIFunctionNameAttribute osztály új példányát.

Tulajdonságok

Név Description
Name

Lekéri a függvényhez használandó nevet.

A következőre érvényes: