共用方式為


XmlLoadSettings 類別

定義

包含載入和剖析 XML 檔時所使用的設定。 系統會針對最高安全性選擇預設設定。 這個類別可以具現化,並由 LoadXmlLoadFromUriAsyncLoadFromFileAsync接受。

public ref class XmlLoadSettings sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class XmlLoadSettings final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class XmlLoadSettings final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class XmlLoadSettings
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class XmlLoadSettings
function XmlLoadSettings()
Public NotInheritable Class XmlLoadSettings
繼承
Object Platform::Object IInspectable XmlLoadSettings
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

建構函式

XmlLoadSettings()

建立新的 XmlLoadSettings 物件。

屬性

ElementContentWhiteSpace

指定預設處理是否保留空白字元。

MaxElementDepth

取得並設定要載入 DOM 物件之 XML 檔之專案深度的限制。

ProhibitDtd

取得或設定值,指定是否禁止或允許在 XML DOM 檔中包含 DTD。

ResolveExternals

取得或設定值,這個值會指定檔剖析時,是否要解析外部定義、可解析命名空間、檔案類型定義的外部子集 (DTD) ,以及要解析外部實體參考。

ValidateOnParse

取得或設定值,指定 XML 剖析器是否應該針對載入時 (DTD) 的檔案類型定義驗證這份檔。

適用於