Share via


VectorStoreKeyAttribute Class

Definition

Defines an attribute to mark a property on a record class as the key under which the record is stored in a vector store.

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
Inheritance
VectorStoreKeyAttribute
Attributes

Remarks

The characteristics defined here influence how the property is treated by the vector store.

Constructors

VectorStoreKeyAttribute()

Properties

StorageName

Gets or sets an optional name to use for the property in storage, if different from the property name.

Applies to