Edit

Bagikan melalui


XmlSerializationReader.CreateUnknownConstantException(String, Type) Method

Definition

Creates an InvalidOperationException that indicates that an enumeration value is not valid.

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Parameters

value
String

The enumeration value that is not valid.

enumType
Type

The enumeration type.

Returns

An InvalidOperationException exception.

Remarks

The protected members of XmlSerializationReader are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

Applies to