EntityKey.OnDeserializing 方法
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
在此 EntityKey 還原序列化之後呼叫。
命名空間: System.Data.Entity.Core
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
<EditorBrowsableAttribute(EditorBrowsableState.Never)> _
<SuppressMessageAttribute("Microsoft.Usage", "CA2238:ImplementSerializationMethodsCorrectly")> _
<BrowsableAttribute(False)> _
<OnDeserializingAttribute> _
Public Sub OnDeserializing ( _
context As StreamingContext _
)
'用途
Dim instance As EntityKey
Dim context As StreamingContext
instance.OnDeserializing(context)
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
[SuppressMessageAttribute("Microsoft.Usage", "CA2238:ImplementSerializationMethodsCorrectly")]
[BrowsableAttribute(false)]
[OnDeserializingAttribute]
public void OnDeserializing(
StreamingContext context
)
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA2238:ImplementSerializationMethodsCorrectly")]
[BrowsableAttribute(false)]
[OnDeserializingAttribute]
public:
void OnDeserializing(
StreamingContext context
)
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
[<SuppressMessageAttribute("Microsoft.Usage", "CA2238:ImplementSerializationMethodsCorrectly")>]
[<BrowsableAttribute(false)>]
[<OnDeserializingAttribute>]
member OnDeserializing :
context:StreamingContext -> unit
public function OnDeserializing(
context : StreamingContext
)
參數
- context
類型:System.Runtime.Serialization.StreamingContext
序列化的內容。