共用方式為


ObjectNotFoundException 建構函式 (String, Exception)

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

初始化 ObjectNotFoundException 類別的新執行個體以及採用訊息和內部例外狀況的建構函式。

命名空間:  System.Data.Entity.Core
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
Public Sub New ( _
    message As String, _
    innerException As Exception _
)
'用途
Dim message As String 
Dim innerException As Exception 

Dim instance As New ObjectNotFoundException(message, _
    innerException)
public ObjectNotFoundException(
    string message,
    Exception innerException
)
public:
ObjectNotFoundException(
    String^ message, 
    Exception^ innerException
)
new : 
        message:string * 
        innerException:Exception -> ObjectNotFoundException
public function ObjectNotFoundException(
    message : String, 
    innerException : Exception
)

參數

  • message
    類型:System.String
    當地語系化的錯誤訊息。

請參閱

參考

ObjectNotFoundException 類別

ObjectNotFoundException 多載

System.Data.Entity.Core 命名空間