Share via


AnnotatableBase.SetAnnotation メソッド

定義

オーバーロード

SetAnnotation(String, Annotation, Annotation)

指定したキーの下に格納されている注釈を設定します。 指定した名前の注釈が既に存在する場合は、既存の注釈を上書きします。

SetAnnotation(String, Object)

指定したキーの下に格納されている注釈を設定します。 指定した名前の注釈が既に存在する場合は、既存の注釈を上書きします。

SetAnnotation(String, Annotation, Annotation)

指定したキーの下に格納されている注釈を設定します。 指定した名前の注釈が既に存在する場合は、既存の注釈を上書きします。

protected virtual Microsoft.EntityFrameworkCore.Infrastructure.Annotation? SetAnnotation (string name, Microsoft.EntityFrameworkCore.Infrastructure.Annotation annotation, Microsoft.EntityFrameworkCore.Infrastructure.Annotation? oldAnnotation);
abstract member SetAnnotation : string * Microsoft.EntityFrameworkCore.Infrastructure.Annotation * Microsoft.EntityFrameworkCore.Infrastructure.Annotation -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
override this.SetAnnotation : string * Microsoft.EntityFrameworkCore.Infrastructure.Annotation * Microsoft.EntityFrameworkCore.Infrastructure.Annotation -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
Protected Overridable Function SetAnnotation (name As String, annotation As Annotation, oldAnnotation As Annotation) As Annotation

パラメーター

name
String

追加する注釈のキー。

annotation
Annotation

設定する注釈。

oldAnnotation
Annotation

置き換えられる注釈。

戻り値

設定された注釈。

適用対象

SetAnnotation(String, Object)

指定したキーの下に格納されている注釈を設定します。 指定した名前の注釈が既に存在する場合は、既存の注釈を上書きします。

public virtual void SetAnnotation (string name, object? value);
abstract member SetAnnotation : string * obj -> unit
override this.SetAnnotation : string * obj -> unit
Public Overridable Sub SetAnnotation (name As String, value As Object)

パラメーター

name
String

追加する注釈のキー。

value
Object

注釈に格納する値。

適用対象