XmlSerializationReader.CreateUnknownConstantException(String, Type) 方法

定义

创建一个指示枚举值无效的函数 InvalidOperationException

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

protected:
 Exception ^ CreateUnknownConstantException(System::String ^ value, Type ^ enumType);
protected Exception CreateUnknownConstantException(string? value, Type enumType);
protected Exception CreateUnknownConstantException(string value, Type enumType);
member this.CreateUnknownConstantException : string * Type -> Exception
Protected Function CreateUnknownConstantException (value As String, enumType As Type) As Exception

参数

value
String

无效的枚举值。

enumType
Type

枚举类型。

返回

异常 InvalidOperationException

注解

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

适用于