語言

VectorStoreKeyAttribute 類別

定義

定義一個屬性,將記錄類別上的屬性標記為向量儲存中記錄的鍵。

public ref class VectorStoreKeyAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false)]
public sealed class VectorStoreKeyAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false)>]
type VectorStoreKeyAttribute = class
    inherit Attribute
Public NotInheritable Class VectorStoreKeyAttribute
Inherits Attribute
繼承
VectorStoreKeyAttribute
屬性

備註

此處定義的特性會影響向量儲存如何處理該性質。

建構函式

名稱 Description
VectorStoreKeyAttribute()

定義一個屬性,將記錄類別上的屬性標記為向量儲存中記錄的鍵。

屬性

名稱 Description
IsAutoGenerated

取得或設定一個值,指示該金鑰屬性的值是否自動產生。

StorageName

如果名稱與物業名稱不同,則會獲得一個可選的儲存資產名稱。

適用於