SerializationObjectManager.RaiseOnSerializedEvent 方法
定义
如果该对象的类型有一个 OnSerializing 回调事件,则调用该事件;如果该对象的类型有一个 OnSerialized 事件,则注册该对象以引发该事件。Invokes the OnSerializing callback event if the type of the object has one; and registers the object for raising the OnSerialized event if the type of the object has one.
public:
void RaiseOnSerializedEvent();
public void RaiseOnSerializedEvent ();
member this.RaiseOnSerializedEvent : unit -> unit
Public Sub RaiseOnSerializedEvent ()
注解
通过将 OnSerializingAttribute 特性应用于已注册对象上的方法,创建 OnSerializing 回调事件。The OnSerializing callback event is created by applying the OnSerializingAttribute attribute to a method on the registered object. 同样,通过将 OnSerializedAttribute 属性应用于已注册对象上的方法,创建 OnSerialized 事件。Similarly, the OnSerialized event is created by applying the OnSerializedAttribute attribute to a method on the registered object.