Annotation.AnnotationType Property

Definition

Gets the XmlQualifiedName of the annotation type.

C#
public System.Xml.XmlQualifiedName AnnotationType { get; }

Property Value

The XML qualified name for this kind of annotation.

Remarks

The returned annotation type is the XmlQualifiedName name passed as a parameter to the Annotation constructor.

Note

AnnotationType returns null if the annotation was incorrectly constructed by using a parameterless constructor without parameters. (The parameterless constructor without parameters does not fully initialize the instance and is used only internally in combination with XML serialization.) To create a new annotation, applications should use the Annotation constructor that takes an XmlQualifiedName as a parameter.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10