MissingPrimaryKeyException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 MissingPrimaryKeyException 類別的新執行個體。
多載
MissingPrimaryKeyException() |
初始化 MissingPrimaryKeyException 類別的新執行個體。 |
MissingPrimaryKeyException(String) |
使用指定的字串,初始化 MissingPrimaryKeyException 類別的新執行個體。 |
MissingPrimaryKeyException(SerializationInfo, StreamingContext) |
已淘汰.
使用序列化資訊,初始化 MissingPrimaryKeyException 類別的新執行個體。 |
MissingPrimaryKeyException(String, Exception) |
使用指定的錯誤訊息以及造成此例外狀況的內部例外狀況的參考,初始化 MissingPrimaryKeyException 類別的新執行個體。 |
MissingPrimaryKeyException()
初始化 MissingPrimaryKeyException 類別的新執行個體。
public:
MissingPrimaryKeyException();
public MissingPrimaryKeyException ();
Public Sub New ()
適用於
MissingPrimaryKeyException(String)
使用指定的字串,初始化 MissingPrimaryKeyException 類別的新執行個體。
public:
MissingPrimaryKeyException(System::String ^ s);
public MissingPrimaryKeyException (string? s);
public MissingPrimaryKeyException (string s);
new System.Data.MissingPrimaryKeyException : string -> System.Data.MissingPrimaryKeyException
Public Sub New (s As String)
參數
- s
- String
例外狀況擲回時要顯示的字串。
適用於
MissingPrimaryKeyException(SerializationInfo, StreamingContext)
警告
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
使用序列化資訊,初始化 MissingPrimaryKeyException 類別的新執行個體。
protected:
MissingPrimaryKeyException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected MissingPrimaryKeyException (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 MissingPrimaryKeyException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Data.MissingPrimaryKeyException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.MissingPrimaryKeyException
[<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 System.Data.MissingPrimaryKeyException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.MissingPrimaryKeyException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
參數
- info
- SerializationInfo
序列化或還原序列化物件所需要的資料。
- context
- StreamingContext
指定序列化資料流的來源和目的端之描述。
- 屬性
另請參閱
適用於
MissingPrimaryKeyException(String, Exception)
使用指定的錯誤訊息以及造成此例外狀況的內部例外狀況的參考,初始化 MissingPrimaryKeyException 類別的新執行個體。
public:
MissingPrimaryKeyException(System::String ^ message, Exception ^ innerException);
public MissingPrimaryKeyException (string? message, Exception? innerException);
public MissingPrimaryKeyException (string message, Exception innerException);
new System.Data.MissingPrimaryKeyException : string * Exception -> System.Data.MissingPrimaryKeyException
Public Sub New (message As String, innerException As Exception)
參數
- message
- String
解釋例外狀況原因的錯誤訊息。
- innerException
- Exception
造成目前例外狀況的例外狀況,若未指定內部例外狀況,則為 null 參考 (Visual Basic 中為 Nothing
)。