Share via


AnnotatableBase.IAnnotatable.SetRuntimeAnnotation(String, Object) Méthode

Définition

Définit l’annotation d’exécution stockée sous la clé donnée. Remplace l’annotation existante si une annotation portant le nom spécifié existe déjà.

[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation IAnnotatable.SetRuntimeAnnotation (string name, object? value);
[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

Paramètres

name
String

Nom de l’annotation à ajouter.

value
Object

Valeur à stocker dans l’annotation.

Retours

Annotation nouvellement ajoutée.

Implémente

Attributs

S’applique à