Returns a SerializationInfo object completely populated with all the data needed to serialize the target object.
[Visual Basic] Overrides Public Sub GetObjectData( _ ByVal info As SerializationInfo, _ ByVal context As StreamingContext _ ) [C#] public override void GetObjectData( SerializationInfo info, StreamingContext context ); [C++] public: override void GetObjectData( SerializationInfo* info, StreamingContext context ); [JScript] public override function GetObjectData( info : SerializationInfo, context : StreamingContext );
A SerializationInfo with all the data need to serialize the object
Exception Type | Condition |
---|---|
ArgumentNullException | If it is null. |
The SerializationInfo object must return data because if it is null, the SerializationInfo will thrown an ArgumentNullException.
ArgumentOutOfRangeException Class | ArgumentOutOfRangeException Members | System Namespace