語言

IAnnotatable.AddRuntimeAnnotation(String, Object) 方法

定義

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

public Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation AddRuntimeAnnotation(string name, object? value);
abstract member AddRuntimeAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation
Public Function AddRuntimeAnnotation (name As String, value As Object) As IAnnotation

參數

name
String

要加入的註解名稱。

value
Object

註解中要儲存的值。

傳回

新加入的註解。

適用於