TempDataDictionary.ISerializable.GetObjectData Method

Populates a SerializationInfo object by using the data that is that is required to serialize the target object.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Private Sub GetObjectData ( _
    info As SerializationInfo, _
    context As StreamingContext _
) Implements ISerializable.GetObjectData
'Usage
Dim instance As TempDataDictionary
Dim info As SerializationInfo
Dim context As StreamingContext

CType(instance, ISerializable).GetObjectData(info, _
    context)
void ISerializable.GetObjectData(
    SerializationInfo info,
    StreamingContext context
)
private:
virtual void GetObjectData(
    SerializationInfo^ info, 
    StreamingContext context
) sealed = ISerializable::GetObjectData

Parameters

Implements

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

Exceptions

Exception Condition
SecurityException

The caller does not have the required permission.

Remarks

This member is an explicit interface member implementation. It can be used only when the TempDataDictionary instance is cast to an ISerializable interface.

See Also

Reference

TempDataDictionary Class

TempDataDictionary Members

System.Web.Mvc Namespace