Прочетете на английски Редактиране

Споделяне чрез


Annotation Constructors

Definition

Initializes a new instance of the Annotation class.

Overloads

Annotation()

This constructor supports the Windows Presentation Foundation infrastructure and is not intended to be used directly from your code.

Annotation(XmlQualifiedName)

Initializes a new instance of the Annotation class that has a specified type name and namespace.

Annotation(XmlQualifiedName, Guid, DateTime, DateTime)

This constructor supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

Annotation()

This constructor supports the Windows Presentation Foundation infrastructure and is not intended to be used directly from your code.

C#
public Annotation();

Remarks

Бележка

Applications should not use the parameterless constructor without parameters-the parameterless constructor does not fully initialize the instance. To create a new Annotation applications should use one of the parameter-based constructors.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.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

Annotation(XmlQualifiedName)

Initializes a new instance of the Annotation class that has a specified type name and namespace.

C#
public Annotation(System.Xml.XmlQualifiedName annotationType);

Parameters

annotationType
XmlQualifiedName

The type name of the annotation.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.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

Annotation(XmlQualifiedName, Guid, DateTime, DateTime)

This constructor supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

C#
public Annotation(System.Xml.XmlQualifiedName annotationType, Guid id, DateTime creationTime, DateTime lastModificationTime);

Parameters

annotationType
XmlQualifiedName

The type name of the annotation.

id
Guid

The GUID for the annotation.

creationTime
DateTime

The date and time the annotation was first created.

lastModificationTime
DateTime

The date and time the annotation was last modified.

Remarks

Бележка

This constructor is used by the WPF serialization infrastructure and should not be used directly under ordinary circumstances.

See also

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.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