AIParameterNameAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定用於 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
- 繼承
- 屬性
備註
名稱是模型在提供函式參數時所看到並使用的識別碼。 預設情況下,這是從 .NET 元資料推斷出來的。 將此屬性套用以使用不同的識別碼。
建構函式
| 名稱 | Description |
|---|---|
| AIParameterNameAttribute(String) |
初始化 AIParameterNameAttribute 類別的新執行個體。 |
屬性
| 名稱 | Description |
|---|---|
| Name |
取得用於參數的結構名稱。 |