Editar

Compartir a través de


XmlStreamStore Constructors

Definition

Initializes a new instance of the XmlStreamStore class.

Overloads

XmlStreamStore(Stream)

Initializes a new instance of the XmlStreamStore class with a specified I/O Stream.

XmlStreamStore(Stream, IDictionary<Uri,IList<Uri>>)

Initializes a new instance of the XmlStreamStore class with a specified I/O Stream and dictionary of known compatible namespaces.

XmlStreamStore(Stream)

Initializes a new instance of the XmlStreamStore class with a specified I/O Stream.

public:
 XmlStreamStore(System::IO::Stream ^ stream);
public XmlStreamStore (System.IO.Stream stream);
new System.Windows.Annotations.Storage.XmlStreamStore : System.IO.Stream -> System.Windows.Annotations.Storage.XmlStreamStore
Public Sub New (stream As Stream)

Parameters

stream
Stream

The I/O stream for reading and writing user annotations.

Remarks

stream must be in valid XML format and comply with the Microsoft Annotations Framework schema.

Applies to

XmlStreamStore(Stream, IDictionary<Uri,IList<Uri>>)

Initializes a new instance of the XmlStreamStore class with a specified I/O Stream and dictionary of known compatible namespaces.

public:
 XmlStreamStore(System::IO::Stream ^ stream, System::Collections::Generic::IDictionary<Uri ^, System::Collections::Generic::IList<Uri ^> ^> ^ knownNamespaces);
public XmlStreamStore (System.IO.Stream stream, System.Collections.Generic.IDictionary<Uri,System.Collections.Generic.IList<Uri>> knownNamespaces);
new System.Windows.Annotations.Storage.XmlStreamStore : System.IO.Stream * System.Collections.Generic.IDictionary<Uri, System.Collections.Generic.IList<Uri>> -> System.Windows.Annotations.Storage.XmlStreamStore
Public Sub New (stream As Stream, knownNamespaces As IDictionary(Of Uri, IList(Of Uri)))

Parameters

stream
Stream

The I/O stream for reading and writing user annotations.

knownNamespaces
IDictionary<Uri,IList<Uri>>

A dictionary with a list of known compatible namespaces.

Exceptions

stream is null.

stream contains invalid XML.

The knownNamespaces dictionary contains a duplicate namespace.

-or-

The knownNamespaces dictionary contains an element that has a null key.

Remarks

This XmlStreamStore constructor enables the registration of application-specific known namespaces.

The knownNamespace dictionary defines application namespaces that are used when you store custom content as part of an annotation. The dictionary key is the primary namespace known to the application program. The namespace key is associated with a value list of older namespaces that are compatible with the "key" namespace. When annotations are loaded all namespaces from this list will be replaced by the "key" namespace.

stream must be in valid XML format and comply with the Annotations Schema.

Applies to