XmlSerializationReader.CreateInaccessibleConstructorException(String) 方法

定义

创建一个 InvalidOperationException 指示无法实例化正在反序列化的对象,因为没有可用的构造函数。

此 API 支持产品基础结构,不能在代码中直接使用。

protected:
 Exception ^ CreateInaccessibleConstructorException(System::String ^ typeName);
protected Exception CreateInaccessibleConstructorException(string typeName);
member this.CreateInaccessibleConstructorException : string -> Exception
Protected Function CreateInaccessibleConstructorException (typeName As String) As Exception

参数

typeName
String

类型的名称。

返回

异常 InvalidOperationException

注解

XmlSerializationReader的受保护成员仅供在 .NET Framework XML 序列化基础结构内部使用的派生类使用。

适用于