XmlSerializationWriter.CreateChoiceIdentifierValueException 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 InvalidOperationException,表示符合 XML 結構描述 choice
項目宣告的項目含有非預期的名稱。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
protected:
Exception ^ CreateChoiceIdentifierValueException(System::String ^ value, System::String ^ identifier, System::String ^ name, System::String ^ ns);
protected Exception CreateChoiceIdentifierValueException (string value, string identifier, string name, string ns);
member this.CreateChoiceIdentifierValueException : string * string * string * string -> Exception
Protected Function CreateChoiceIdentifierValueException (value As String, identifier As String, name As String, ns As String) As Exception
參數
- value
- String
無效的名稱。
- identifier
- String
名稱所屬的 choice
項目宣告。
- name
- String
項目的預期區域名稱。
- ns
- String
項目的預期命名空間。
傳回
新建立的例外狀況。
備註
的受保護成員 XmlSerializationWriter 僅供在 .NET Framework XML 序列化基礎結構內部使用的衍生類別使用。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應