MemoryOperation Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| MemoryOperation() |
Initializes a new instance of MemoryOperation for deserialization. |
| MemoryOperation(MemoryOperationKind, MemoryItem) |
Initializes a new instance of MemoryOperation. |
| MemoryOperation(MemoryOperationKind, MemoryItem, IDictionary<String,BinaryData>) |
Initializes a new instance of MemoryOperation. |
MemoryOperation()
- Source:
- MemoryOperation.cs
Initializes a new instance of MemoryOperation for deserialization.
public MemoryOperation();
Public Sub New ()
Applies to
MemoryOperation(MemoryOperationKind, MemoryItem)
- Source:
- MemoryOperation.cs
Initializes a new instance of MemoryOperation.
public MemoryOperation(Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryOperationKind kind, Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryItem memoryItem);
new Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryOperation : Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryOperationKind * Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryItem -> Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryOperation
Public Sub New (kind As MemoryOperationKind, memoryItem As MemoryItem)
Parameters
- kind
- MemoryOperationKind
The type of memory operation being performed.
- memoryItem
- MemoryItem
The memory item to create, update, or delete. Please note MemoryItem is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include UserProfileMemoryItem.
Exceptions
memoryItem is null.
Applies to
MemoryOperation(MemoryOperationKind, MemoryItem, IDictionary<String,BinaryData>)
- Source:
- MemoryOperation.cs
Initializes a new instance of MemoryOperation.
public MemoryOperation(Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryOperationKind kind, Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryItem memoryItem, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData);
new Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryOperation : Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryOperationKind * Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryItem * System.Collections.Generic.IDictionary<string, BinaryData> -> Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemoryOperation
Public Sub New (kind As MemoryOperationKind, memoryItem As MemoryItem, serializedAdditionalRawData As IDictionary(Of String, BinaryData))
Parameters
- kind
- MemoryOperationKind
The type of memory operation being performed.
- memoryItem
- MemoryItem
The memory item to create, update, or delete. Please note MemoryItem is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include UserProfileMemoryItem.
- serializedAdditionalRawData
- IDictionary<String,BinaryData>
Keeps track of any properties unknown to the library.