XmlSerializationWriter.CreateChoiceIdentifierValueException 方法

定義

建立 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 序列化基礎結構內部使用的衍生類別使用。

適用於