RuntimeAnnotatableBase.IAnnotatable.SetRuntimeAnnotation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定在指定鍵值下儲存的執行時註解。 若已有指定名稱的註解存在,則會覆寫現有註解。
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation IAnnotatable.SetRuntimeAnnotation(string name, object value);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable.SetRuntimeAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation
override this.Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable.SetRuntimeAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation
Function SetRuntimeAnnotation (name As String, value As Object) As IAnnotation Implements IAnnotatable.SetRuntimeAnnotation
參數
- name
- String
要加入的註解名稱。
- value
- Object
註解中要儲存的值。
傳回
新加入的註解。
實作
- 屬性