語言

AIFunctionNameAttribute 類別

定義

指定用於 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
繼承
AIFunctionNameAttribute
屬性

備註

名稱是模型看到並用來呼叫函式的識別碼。 預設情況下,這是從 .NET 元資料推斷出來的。 將此屬性套用以使用不同的識別碼。

建構函式

名稱 Description
AIFunctionNameAttribute(String)

初始化 AIFunctionNameAttribute 類別的新執行個體。

屬性

名稱 Description
Name

取得該函式的名稱。

適用於