MutableAnnotatableExtensions.SetOrRemoveAnnotation Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Définit l’annotation stockée sous le nom donné. Remplace l’annotation existante si une annotation portant le nom spécifié existe déjà. Supprime l’annotation existante si null
est fournie.
public static void SetOrRemoveAnnotation (this Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable annotatable, string name, object value);
static member SetOrRemoveAnnotation : Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable * string * obj -> unit
<Extension()>
Public Sub SetOrRemoveAnnotation (annotatable As IMutableAnnotatable, name As String, value As Object)
Paramètres
- annotatable
- IMutableAnnotatable
Objet pour lequel définir l’annotation.
- name
- String
Nom de l’annotation à ajouter.
- value
- Object
Valeur à stocker dans l’annotation.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour