RuntimeBinderInternalCompilerException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用说明错误的系统提供的消息初始化 RuntimeBinderInternalCompilerException 类的新实例。
重载
RuntimeBinderInternalCompilerException() |
使用说明错误的系统提供的消息初始化 RuntimeBinderInternalCompilerException 类的新实例。 |
RuntimeBinderInternalCompilerException(String) |
使用说明错误的指定消息初始化 RuntimeBinderInternalCompilerException 类的新实例。 |
RuntimeBinderInternalCompilerException(SerializationInfo, StreamingContext) |
已过时.
用序列化数据初始化 RuntimeBinderInternalCompilerException 类的新实例。 |
RuntimeBinderInternalCompilerException(String, Exception) |
初始化 RuntimeBinderInternalCompilerException 类的新实例,该实例具有指定的错误消息以及对导致此异常的内部异常的引用。 |
RuntimeBinderInternalCompilerException()
使用说明错误的系统提供的消息初始化 RuntimeBinderInternalCompilerException 类的新实例。
public:
RuntimeBinderInternalCompilerException();
public RuntimeBinderInternalCompilerException ();
Public Sub New ()
注解
此构造函数将新实例的 属性初始化 Message 为系统提供的消息,该消息描述错误,例如“DefaultMessageDisplayedByParameterlessCtorWriterMustSupply”,此消息将考虑当前系统区域性。
下表显示了 InsufficientMemoryException 实例的初始属性值。
properties | 值 |
---|---|
InnerException |
null . |
Message | 本地化的错误消息字符串。 |
另请参阅
适用于
RuntimeBinderInternalCompilerException(String)
使用说明错误的指定消息初始化 RuntimeBinderInternalCompilerException 类的新实例。
public:
RuntimeBinderInternalCompilerException(System::String ^ message);
public RuntimeBinderInternalCompilerException (string message);
public RuntimeBinderInternalCompilerException (string? message);
new Microsoft.CSharp.RuntimeBinder.RuntimeBinderInternalCompilerException : string -> Microsoft.CSharp.RuntimeBinder.RuntimeBinderInternalCompilerException
Public Sub New (message As String)
参数
- message
- String
描述该异常的消息。 此构造函数的调用方需要确保此字符串已针对当前系统区域性进行了本地化。
注解
下表显示了 RuntimeBinderInternalCompilerException 实例的初始属性值。
properties | 值 |
---|---|
InnerException |
null . |
Message |
message 中指定的错误消息字符串。 |
另请参阅
适用于
RuntimeBinderInternalCompilerException(SerializationInfo, StreamingContext)
注意
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
用序列化数据初始化 RuntimeBinderInternalCompilerException 类的新实例。
protected:
RuntimeBinderInternalCompilerException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected RuntimeBinderInternalCompilerException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected RuntimeBinderInternalCompilerException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.CSharp.RuntimeBinder.RuntimeBinderInternalCompilerException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.CSharp.RuntimeBinder.RuntimeBinderInternalCompilerException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new Microsoft.CSharp.RuntimeBinder.RuntimeBinderInternalCompilerException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.CSharp.RuntimeBinder.RuntimeBinderInternalCompilerException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
参数
- info
- SerializationInfo
包含有关所引发异常的序列化对象数据的 SerializationInfo。
- context
- StreamingContext
StreamingContext,它包含关于源或目标的上下文信息。
- 属性
注解
在反序列化期间调用此构造函数以重新构造在流上传输的异常对象。
适用于
RuntimeBinderInternalCompilerException(String, Exception)
初始化 RuntimeBinderInternalCompilerException 类的新实例,该实例具有指定的错误消息以及对导致此异常的内部异常的引用。
public:
RuntimeBinderInternalCompilerException(System::String ^ message, Exception ^ innerException);
public RuntimeBinderInternalCompilerException (string message, Exception innerException);
public RuntimeBinderInternalCompilerException (string? message, Exception? innerException);
new Microsoft.CSharp.RuntimeBinder.RuntimeBinderInternalCompilerException : string * Exception -> Microsoft.CSharp.RuntimeBinder.RuntimeBinderInternalCompilerException
Public Sub New (message As String, innerException As Exception)
参数
- message
- String
解释异常原因的错误消息。
- innerException
- Exception
导致当前异常的异常;如果未指定任何内部异常,则为 null 引用。
注解
因前一个异常而直接引发的异常应在 InnerException 属性中包含对前一个异常的引用。
InnerException 属性将返回传递给构造函数的同一值;如果 InnerException 属性不向构造函数提供内部异常值,则返回 null
。
下表显示了 RuntimeBinderInternalCompilerException 实例的初始属性值。
properties | 值 |
---|---|
InnerException |
null . |
Message |
message 中指定的错误消息字符串。 |