PostSharp//API Reference/Post­Sharp.​Patterns.​Dynamic­Advising/Dynamically­Advisable­Object/Get­Object­Data
Open sandboxFocus

Method GetObjectData

GetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo with the data needed to serialize the target object.

Declaration
public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info

The SerializationInfo to populate with data.

StreamingContext context

The destination (see StreamingContext) for this serialization.

Exceptions
Type Condition
SecurityException

The caller does not have the required permission.