GetObjectData Method


Retrieves data needed to serialize the target object.

Namespace: Autodesk.Revit.Exceptions
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)

Syntax

C#
public virtual void GetObjectData(
	SerializationInfo info,
	StreamingContext context
)
Visual Basic
Public Overridable Sub GetObjectData ( _
	info As SerializationInfo, _
	context As StreamingContext _
)
Visual C++
public:
virtual void GetObjectData(
	SerializationInfo^ info, 
	StreamingContext context
)

Parameters

info
Type: System.Runtime.Serialization SerializationInfo
Data needed to serialize or deserialize the object.
context
Type: System.Runtime.Serialization StreamingContext
The destination of the serialized stream.

Implements

ISerializable GetObjectData(SerializationInfo, StreamingContext)

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →