Partage via


XmlStreamStore.AddAnnotation(Annotation) Méthode

Définition

Ajoute une nouvelle Annotation au magasin.

public:
 override void AddAnnotation(System::Windows::Annotations::Annotation ^ newAnnotation);
public override void AddAnnotation (System.Windows.Annotations.Annotation newAnnotation);
override this.AddAnnotation : System.Windows.Annotations.Annotation -> unit
Public Overrides Sub AddAnnotation (newAnnotation As Annotation)

Paramètres

newAnnotation
Annotation

Annotation à ajouter au magasin.

Exceptions

newAnnotation a la valeur null.

Une Annotation avec le même Id existe déjà dans le magasin.

Aucun Stream E/S n'a été défini pour le magasin.

Dispose a été appelé sur le magasin.

Remarques

Lorsqu’il AddAnnotation est appelé, l’élément Id Annotation est vérifié pour voir si le Annotation magasin a déjà été ajouté. Si le Annotation fichier a déjà été ajouté et qu’il se trouve dans le magasin, une ArgumentException erreur est levée.

S’applique à

Voir aussi