MutableAnnotatableExtensions Class

Definition

Caution

Use IMutableAnnotatable

Extension methods for IMutableAnnotatable.

public static class MutableAnnotatableExtensions
[System.Obsolete("Use IMutableAnnotatable")]
public static class MutableAnnotatableExtensions
type MutableAnnotatableExtensions = class
[<System.Obsolete("Use IMutableAnnotatable")>]
type MutableAnnotatableExtensions = class
Public Module MutableAnnotatableExtensions
Public Class MutableAnnotatableExtensions
Inheritance
MutableAnnotatableExtensions
Attributes

Methods

AddAnnotations(IMutableAnnotatable, IEnumerable<IAnnotation>)

Adds annotations to an object.

GetAnnotation(IMutableAnnotatable, String)

Gets the annotation with the given name, throwing if it does not exist.

GetOrAddAnnotation(IMutableAnnotatable, String, String)

Gets the existing annotation with a given key, or adds a new annotation if one does not exist.

SetOrRemoveAnnotation(IMutableAnnotatable, String, Object)

Sets the annotation stored under the given name. Overwrites the existing annotation if an annotation with the specified name already exists. Removes the existing annotation if null is supplied.

Applies to