ObjectNeedsStateException 建構 (SerializationInfo, StreamingContext)
使用序列化資料初始化 ObjectNeedsStateException 類別的新執行個體。
命名空間: Microsoft.Synchronization
組件: Microsoft.Synchronization (在 microsoft.synchronization.dll)
語法
'宣告
Protected Sub New ( _
info As SerializationInfo, _
context As StreamingContext _
)
'用途
Dim info As SerializationInfo
Dim context As StreamingContext
Dim instance As New ObjectNeedsStateException(info, context)
protected ObjectNeedsStateException (
SerializationInfo info,
StreamingContext context
)
protected:
ObjectNeedsStateException (
SerializationInfo^ info,
StreamingContext context
)
protected ObjectNeedsStateException (
SerializationInfo info,
StreamingContext context
)
protected function ObjectNeedsStateException (
info : SerializationInfo,
context : StreamingContext
)
參數
- info
SerializationInfo 物件,它會保存有關所擲回之例外狀況的序列化物件資料。
- context
StreamingContext 物件,此物件包含有關來源或目的地的內容資訊。
請參閱
參考
ObjectNeedsStateException 類別
ObjectNeedsStateException 成員
Microsoft.Synchronization 命名空間