XamlXmlWriterSettings.AssumeValidInput 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指定 XamlXmlWriter 是否應始終假設有效的 XAML 輸入以進行重複解析或其他錯誤檢查。
public:
property bool AssumeValidInput { bool get(); void set(bool value); };
public bool AssumeValidInput { get; set; }
member this.AssumeValidInput : bool with get, set
Public Property AssumeValidInput As Boolean
屬性值
true 如果跳 XamlXmlWriter 過某些驗證或錯誤檢查,例如對重複成員拋出例外。
false 若遇到 XamlXmlWriter 無效 XAML 時會拋出例外。 預設值為 false。