XmlStreamStore.IgnoredNamespaces 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得載入 XML 串流時忽略的命名空間清單。
public:
property System::Collections::Generic::IList<Uri ^> ^ IgnoredNamespaces { System::Collections::Generic::IList<Uri ^> ^ get(); };
public System.Collections.Generic.IList<Uri> IgnoredNamespaces { get; }
member this.IgnoredNamespaces : System.Collections.Generic.IList<Uri>
Public ReadOnly Property IgnoredNamespaces As IList(Of Uri)
屬性值
載入 XML 串流時忽略的命名空間清單。
備註
IgnoredNamespaces該屬性永遠不會回傳null,但如果沒有忽略命名空間,回傳的清單可能會是空的。
IgnoredNamespaces 當程式讀取由不同版本 Microsoft 註解框架所建立的註解內容時,有助於 XML 標記相容性。 當舊應用程式獲得使用較新版本註解框架所建立的註解內容時, IgnoredNamespaces 會回傳一份舊框架不認識元素與屬性的 XML 命名空間清單。 當舊應用程式讀取並反序列化註解內容時,與新命名空間相關的未知 XML 元素和屬性會被忽略。 欲了解更多資訊,請參閱 XML 標記相容性規範。