Create a backup of the object in the session. We do this to not blow
up the ViewState in ASP.Net applications. When serializing the object in the
ViewState we would also send the
ObjectContext
and other classes such as the storage to the ViewState.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Overridable Sub GetObjectData( _
ByVal info As SerializationInfo, _
ByVal context As StreamingContext _
) |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As ObjectHolderBase
Dim info As SerializationInfo
Dim context As StreamingContext
instance.GetObjectData(info, context)
|
| C# | |
|---|
public virtual void GetObjectData(
SerializationInfo info,
StreamingContext context
) |
| Managed Extensions for C++ | |
|---|
public: virtual void GetObjectData(
SerializationInfo* info,
StreamingContext context
) |
| C++/CLI | |
|---|
public:
virtual void GetObjectData(
SerializationInfo^ info,
StreamingContext context
) |
Parameters
- info
- context
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family
See Also