共用方式為


XmlStreamStore 建構函式

定義

初始化 XmlStreamStore 類別的新執行個體。

多載

XmlStreamStore(Stream)

使用指定的 I/O XmlStreamStore 來初始化 Stream 類別的新執行個體。

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

使用指定的 I/O XmlStreamStore 和已知相容之命名空間 (Namespace) 的字典初始化 Stream 類別的新執行個體。

XmlStreamStore(Stream)

使用指定的 I/O XmlStreamStore 來初始化 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)

參數

stream
Stream

用於讀取和寫入使用者附註的 I/O 資料流。

備註

stream 必須是有效的 XML 格式,且符合 Microsoft Annotations Framework 架構。

適用於

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

使用指定的 I/O XmlStreamStore 和已知相容之命名空間 (Namespace) 的字典初始化 Stream 類別的新執行個體。

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)))

參數

stream
Stream

用於讀取和寫入使用者附註的 I/O 資料流。

knownNamespaces
IDictionary<Uri,IList<Uri>>

含有已知相容之命名空間清單的字典。

例外狀況

streamnull

stream 包含無效的 XML。

knownNamespaces 字典包含重複的命名空間。

-或- knownNamespaces 字典包含有 null 索引鍵的項目。

備註

XmlStreamStore 建構函式會啟用應用程式特定已知命名空間的註冊。

字典 knownNamespace 會定義當您將自訂內容儲存為批註一部分時所使用的應用程式命名空間。 字典索引鍵是應用程式程式已知的主要命名空間。 命名空間索引鍵會與與 「key」 命名空間相容的較舊命名空間值清單相關聯。 當批註從此清單中載入所有命名空間時,將會由 「key」 命名空間取代。

stream 必須是有效的 XML 格式,且符合 注釋架構

適用於