SerializationObjectManager::RegisterObject Method (Object^)

 

Registers the object upon which events will be raised.

Namespace:   System.Runtime.Serialization
Assembly:  mscorlib (in mscorlib.dll)

public:
[SecurityCriticalAttribute]
void RegisterObject(
	Object^ obj
)

Parameters

obj
Type: System::Object^

The object to register.

The RaiseOnSerializedEvent method will be called on the registered object.

SecurityPermissionAttribute

for providing serialization services. Associated enumeration: SecurityPermissionFlag::SerializationFormatter.

.NET Framework
Available since 2.0
Return to top
Show: