XmlStreamStore.AddAnnotation(Annotation) Metod

Definition

Lägger till en ny Annotation i butiken.

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)

Parametrar

newAnnotation
Annotation

Kommentaren som ska läggas till i arkivet.

Undantag

newAnnotation är null.

En Annotation med samma Id finns redan i butiken.

Ett I/O Stream har inte angetts för arkivet.

Dispose har anropats i butiken.

Kommentarer

När AddAnnotation anropas Id kontrolleras av för Annotation att se om redan Annotation har lagts till i arkivet. Om det Annotation redan har lagts till och finns i arkivet genereras ett ArgumentException fel.

Gäller för

Se även