Share via


VectorStoreDataProperty(String, Type) Constructor

Definition

Initializes a new instance of the VectorStoreDataProperty class.

public VectorStoreDataProperty(string name, Type? type = default);
new Microsoft.Extensions.VectorData.VectorStoreDataProperty : string * Type -> Microsoft.Extensions.VectorData.VectorStoreDataProperty
Public Sub New (name As String, Optional type As Type = Nothing)

Parameters

name
String

The name of the property on the data model. If the record is mapped to a .NET type, this corresponds to the .NET property name on that type.

type
Type

The type of the property. Required when using a record type of Dictionary<string, object?> (dynamic mapping), but can be omitted when mapping any other .NET type.

Applies to