Share via


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 序列化基礎結構內部使用的衍生類別使用。

適用於