XmlStreamStore.AddAnnotation(Annotation) Método

Definición

Agrega un nuevo Annotation elemento al almacén.

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)

Parámetros

newAnnotation
Annotation

Anotación que se va a agregar al almacén.

Excepciones

newAnnotation es null.

Un Annotation con lo mismo Id ya está en la tienda.

No se ha establecido una E/S Stream para la tienda.

Dispose se ha llamado a en la tienda.

Comentarios

Cuando AddAnnotation se llama a , se comprueba el Id de Annotation para ver si Annotation ya se ha agregado al almacén. Annotation Si ya se ha agregado y se encuentra en el almacén, se produce un ArgumentException error.

Se aplica a

Consulte también