XmlSerializationWriter.CreateInvalidChoiceIdentifierValueException(String, String) 方法
定义
创建一个 InvalidOperationException,该异常指示在应用 XML 架构 choice 元素声明的位置写入数组时操作失败。Creates an InvalidOperationException that indicates a failure while writing an array where an XML Schema choice element declaration is applied.
此 API 支持产品基础结构,不能在代码中直接使用。
protected:
Exception ^ CreateInvalidChoiceIdentifierValueException(System::String ^ type, System::String ^ identifier);
protected Exception CreateInvalidChoiceIdentifierValueException (string type, string identifier);
member this.CreateInvalidChoiceIdentifierValueException : string * string -> Exception
Protected Function CreateInvalidChoiceIdentifierValueException (type As String, identifier As String) As Exception
参数
- type
- String
正在序列化的类型。The type being serialized.
- identifier
- String
choice 元素声明的名称。A name for the choice element declaration.
返回
新创建的异常。The newly created exception.
注解
的受保护成员 XmlSerializationWriter 仅供在 .NET FRAMEWORK XML 序列化基础结构内部使用的派生类使用。The protected members of XmlSerializationWriter are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.