Share via


ConventionAnnotatable.IMutableAnnotatable.SetAnnotation Method

Definition

Sets the annotation stored under the given key. Overwrites the existing annotation if an annotation with the specified name already exists.

[System.Diagnostics.DebuggerStepThrough]
void IMutableAnnotatable.SetAnnotation (string name, object value);
[System.Diagnostics.DebuggerStepThrough]
void IMutableAnnotatable.SetAnnotation (string name, object? value);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable.SetAnnotation : string * obj -> unit
override this.Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable.SetAnnotation : string * obj -> unit
Sub SetAnnotation (name As String, value As Object) Implements IMutableAnnotatable.SetAnnotation

Parameters

name
String

The name of the annotation to be added.

value
Object

The value to be stored in the annotation.

Implements

Attributes

Applies to