共用方式為


RuntimeBinderInternalCompilerException 建構函式

定義

初始化該類別的新實例 RuntimeBinderInternalCompilerException ,並以系統提供的訊息描述錯誤。

多載

名稱 Description
RuntimeBinderInternalCompilerException()

初始化該類別的新實例 RuntimeBinderInternalCompilerException ,並以系統提供的訊息描述錯誤。

RuntimeBinderInternalCompilerException(String)

初始化類別的新實例 RuntimeBinderInternalCompilerException ,並以指定訊息描述錯誤。

RuntimeBinderInternalCompilerException(SerializationInfo, StreamingContext)
已淘汰.

初始化一個新的類別實例 RuntimeBinderInternalCompilerException ,並使用序列化資料。

RuntimeBinderInternalCompilerException(String, Exception)

初始化一個新的類別實例,該實例 RuntimeBinderInternalCompilerException 包含指定的錯誤訊息及對導致該異常的內部例外的參考。

RuntimeBinderInternalCompilerException()

來源:
RuntimeBinderInternalCompilerException.cs
來源:
RuntimeBinderInternalCompilerException.cs
來源:
RuntimeBinderInternalCompilerException.cs
來源:
RuntimeBinderInternalCompilerException.cs
來源:
RuntimeBinderInternalCompilerException.cs

初始化該類別的新實例 RuntimeBinderInternalCompilerException ,並以系統提供的訊息描述錯誤。

public:
 RuntimeBinderInternalCompilerException();
public RuntimeBinderInternalCompilerException();
Public Sub New ()

備註

此建構器會將新實例的屬性初始 Message 化為系統提供的訊息,描述錯誤,例如「DefaultMessageDisplayedByParameterlessCtorWriterMustSupply」。此訊息會考慮當前系統文化。

下表顯示了 的 InsufficientMemoryException初始屬性值。

房產 價值
InnerException null
Message 區域化錯誤訊息字串。

另請參閱

適用於

RuntimeBinderInternalCompilerException(String)

來源:
RuntimeBinderInternalCompilerException.cs
來源:
RuntimeBinderInternalCompilerException.cs
來源:
RuntimeBinderInternalCompilerException.cs
來源:
RuntimeBinderInternalCompilerException.cs
來源:
RuntimeBinderInternalCompilerException.cs

初始化類別的新實例 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初始屬性值。

房產 價值
InnerException null
Message 錯誤訊息字串在 message中指定。

另請參閱

適用於

RuntimeBinderInternalCompilerException(SerializationInfo, StreamingContext)

來源:
RuntimeBinderInternalCompilerException.cs
來源:
RuntimeBinderInternalCompilerException.cs
來源:
RuntimeBinderInternalCompilerException.cs
來源:
RuntimeBinderInternalCompilerException.cs
來源:
RuntimeBinderInternalCompilerException.cs

警告

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);
[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);
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}")>]
new Microsoft.CSharp.RuntimeBinder.RuntimeBinderInternalCompilerException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.CSharp.RuntimeBinder.RuntimeBinderInternalCompilerException
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

the that StreamingContext 包含了關於來源或目的地的上下文資訊。

屬性

備註

此建構子在反序列化過程中被呼叫,以重建透過串流傳輸的例外物件。

適用於

RuntimeBinderInternalCompilerException(String, Exception)

來源:
RuntimeBinderInternalCompilerException.cs
來源:
RuntimeBinderInternalCompilerException.cs
來源:
RuntimeBinderInternalCompilerException.cs
來源:
RuntimeBinderInternalCompilerException.cs
來源:
RuntimeBinderInternalCompilerException.cs

初始化一個新的類別實例,該實例 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

該例外是當前例外的原因,若未指定內部例外則為空參考。

備註

因先前例外直接拋出的例外,應包含對該屬性中 InnerException 先前例外的參考。 該 InnerException 屬性回傳與傳入建構子相同的值,或 null 若該 InnerException 性質未提供內部例外值給建構子。

下表顯示了 的 RuntimeBinderInternalCompilerException初始屬性值。

房產 價值
InnerException null
Message 錯誤訊息字串在 message中指定。

適用於