語言

Annotatable.IMutableAnnotatable.AddAnnotation(String, Object) 方法

定義

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

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

參數

name
String

要加入的註解名稱。

value
Object

註解中要儲存的值。

傳回

新加入的註解。

實作

屬性

適用於