XmlSerializationReader.CreateUnknownConstantException(String, Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru