語言

RuntimeAnnotatableBase.AddAnnotation(String, Object) 方法

定義

為此物件新增註解。 如果已有指定名稱的註解存在,則會拋出。

public virtual Microsoft.EntityFrameworkCore.Infrastructure.Annotation AddAnnotation(string name, object? value);
abstract member AddAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
override this.AddAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
Public Overridable Function AddAnnotation (name As String, value As Object) As Annotation

參數

name
String

註解的鍵要加入。

value
Object

註解中要儲存的值。

傳回

新加入的註解。

適用於