XmlStreamStore.AddAnnotation(Annotation) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a new Annotation to the store.
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)
Parameters
- newAnnotation
- Annotation
The annotation to add to the store.
Exceptions
newAnnotation
is null
.
An Annotation with the same Id already is in the store.
An I/O Stream has not been set for the store.
Dispose has been called on the store.
Remarks
When AddAnnotation is called, the Id of the Annotation is checked to see whether the Annotation already has been added to the store. If the Annotation already has been added and is in the store an ArgumentException error is thrown.
Applies to
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈