EntityKey.OnDeserialized 方法
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
在反序列化此 EntityKey 后调用。
命名空间: System.Data.Entity.Core
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
<SuppressMessageAttribute("Microsoft.Usage", "CA2238:ImplementSerializationMethodsCorrectly")> _
<BrowsableAttribute(False)> _
<EditorBrowsableAttribute(EditorBrowsableState.Never)> _
<OnDeserializedAttribute> _
Public Sub OnDeserialized ( _
context As StreamingContext _
)
用法
Dim instance As EntityKey
Dim context As StreamingContext
instance.OnDeserialized(context)
[SuppressMessageAttribute("Microsoft.Usage", "CA2238:ImplementSerializationMethodsCorrectly")]
[BrowsableAttribute(false)]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
[OnDeserializedAttribute]
public void OnDeserialized(
StreamingContext context
)
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA2238:ImplementSerializationMethodsCorrectly")]
[BrowsableAttribute(false)]
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
[OnDeserializedAttribute]
public:
void OnDeserialized(
StreamingContext context
)
[<SuppressMessageAttribute("Microsoft.Usage", "CA2238:ImplementSerializationMethodsCorrectly")>]
[<BrowsableAttribute(false)>]
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
[<OnDeserializedAttribute>]
member OnDeserialized :
context:StreamingContext -> unit
public function OnDeserialized(
context : StreamingContext
)
参数
- context
类型:System.Runtime.Serialization.StreamingContext
序列化上下文。