語言

AIParameterNameAttribute 類別

定義

指定用於 AIFunction 參數的結構名稱。

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
繼承
AIParameterNameAttribute
屬性

備註

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

建構函式

名稱 Description
AIParameterNameAttribute(String)

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

屬性

名稱 Description
Name

取得用於參數的結構名稱。

適用於