Share via


ConventionAnnotatable.IMutableAnnotatable.SetAnnotation 方法

定義

設定儲存在指定索引鍵底下的批註。 如果具有指定名稱的注釋已經存在,則會覆寫現有的批註。

[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

參數

name
String

要加入的批註名稱。

value
Object

要儲存在注釋中的值。

實作

屬性

適用於