XmlStreamStore.AddAnnotation(Annotation) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Adiciona um novo Annotation à loja.
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
A anotação para adicionar à loja.
Exceções
newAnnotation é null.
Um Annotation com o mesmo Id já está na loja.
Ainda não foi definido um I/O Stream para a loja.
Dispose foi chamado à loja.
Observações
Quando AddAnnotation é chamado, verifica-se se AnnotationId já Annotation foi adicionado à loja. Se o já Annotation foi adicionado e está na loja, é lançado um ArgumentException erro.