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.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für